From 450456484debb4fc5b5abb9ef98f89a4f9721e67 Mon Sep 17 00:00:00 2001 From: rajuk999 <106429042+rajuk999@users.noreply.github.com> Date: Sat, 11 Jun 2022 12:07:32 +0530 Subject: [PATCH 1/2] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cc517f7..8e069e4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node('master') +node('built-in') { stage('Continuous Download') { @@ -10,7 +10,7 @@ node('master') } stage('Continuous Deployment') { -sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/ScriptedPipeline/webapp/target/webapp.war ubuntu@172.31.26.217:/var/lib/tomcat8/webapps/qaenv.war' +sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/pipeline_job/webapp/target/webapp.war ubuntu@172.31.6.4:/var/lib/tomcat9/webapps/qaenv.war' } stage('Continuous Testing') { @@ -18,6 +18,6 @@ sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/ScriptedPipeline/weba } stage('Continuous Delivery') { -sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/ScriptedPipeline/webapp/target/webapp.war ubuntu@172.31.22.88:/var/lib/tomcat8/webapps/prodenv.war' +sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/pipeline_job/webapp/target/webapp.war ubuntu@172.31.15.246:/var/lib/tomcat9/webapps/prodenv.war' } } From 5b64518292689fc63a99825972ad4e8589d407c7 Mon Sep 17 00:00:00 2001 From: kpraju009 Date: Tue, 14 Jun 2022 16:22:37 +0530 Subject: [PATCH 2/2] b --- Jenkinsfile | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8e069e4..b0149d9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,23 +1,11 @@ node('built-in') { - stage('Continuous Download') + stage('Continuous Download_Master') { git 'https://github.com/sunildevops77/maven.git' } - stage('Continuous Build') + stage('Continuous Build_Master') { sh label: '', script: 'mvn package' } - stage('Continuous Deployment') - { -sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/pipeline_job/webapp/target/webapp.war ubuntu@172.31.6.4:/var/lib/tomcat9/webapps/qaenv.war' - } - stage('Continuous Testing') - { - sh label: '', script: 'echo "Testing Passed"' - } - stage('Continuous Delivery') - { -sh label: '', script: 'scp /home/ubuntu/.jenkins/workspace/pipeline_job/webapp/target/webapp.war ubuntu@172.31.15.246:/var/lib/tomcat9/webapps/prodenv.war' - } }