From 413c5657caa3e2eb0cfca6f815262d8737da7b38 Mon Sep 17 00:00:00 2001 From: smusongwe Date: Wed, 4 Aug 2021 21:47:24 -0400 Subject: [PATCH 1/2] update --- Jenkinsfile | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index cc517f7..b7f0f2d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,16 +8,5 @@ node('master') { sh label: '', script: 'mvn package' } - 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' - } - stage('Continuous Testing') - { - sh label: '', script: 'echo "Testing Passed"' - } - 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' - } + } From 8dcf8b5ee545ec68a4f4de84133d10e44cbfc6ef Mon Sep 17 00:00:00 2001 From: smusongwe Date: Wed, 4 Aug 2021 21:51:02 -0400 Subject: [PATCH 2/2] update --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b7f0f2d..7b21fca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,10 @@ node('master') { - stage('Continuous Download') + stage('Continuous Download_multibranch') { git 'https://github.com/sunildevops77/maven.git' } - stage('Continuous Build') + stage('Continuous Build_multibranch') { sh label: '', script: 'mvn package' }