GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — java-web-app-docker/Jenkinsfilemkm-project2 at master · modugulakrishna/java-web-app-docker Expand file tree/ Copy pathJenkinsfilemkm-project2More file actions 45 lines (36 loc) · 1.31 KB / Copy pathJenkinsfilemkm-project2File metadata and controls45 lines (36 loc) · 1.31 KB 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. |