diff --git a/Jenkinsfile b/Jenkinsfile index cc517f7..7b21fca 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,23 +1,12 @@ 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' } - 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' - } + }