GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java-web-app-docker/Jenkinsfilemkm-project2 at master · modugulakrishna/java-web-app-docker

Expand file tree

/

Jenkinsfilemkm-project2

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
45 lines (36 loc) · 1.31 KB
/

Jenkinsfilemkm-project2

Copy path

File metadata and controls

45 lines (36 loc) · 1.31 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
node
{
def MavenHome = tool name: "maven"
stage('Git-Checkout') {
git credentialsId: 'GitHub_Cre', url: 'https://github.com/modugulakrishna/java-web-app-docker.git'
}
stage('Maven-Clean-Package') {
sh "${MavenHome}/bin/mvn clean package"
}
stage('Code-Quality-with-sonar') {
sh "${MavenHome}/bin/mvn sonar:sonar"
}
stage('Artifacts-to-nexus') {
sh "${MavenHome}/bin/mvn deploy"
}
stage('DeploytoTomcat') {
sshagent(['tomcat-deploy']) {
sh "scp -o StrictHostKeyChecking=no target/*.war [email protected]:/opt/apache-tomcat-9.0.27/webapps"
}
}
stage('Create-dockerImage') {
sh "docker build . -t modugulakrishna99/java-docker:latest"
}
stage('Push-to-DockerHub') {
withCredentials([string(credentialsId: 'dockerHubPwd', variable: 'dockerHubPwd')]) {
sh "docker login -u modugulakrishna99 -p ${dockerHubPwd}"
}
sh "docker push modugulakrishna99/java-docker:latest"
}
stage('Container-Run-in-Dockerserver') {
def DockerRun= "docker run -d -p 9050:8080 --name mkmjava modugulakrishna99/java-docker:latest"
sshagent(['docker-server']) {
}
sh "ssh -o StrictHostKeyChecking=no [email protected] ${DockerRun}"
}
}
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.