Skip to content

Commit dc12bce

Browse files
Update Jenkinsfile
1 parent f8ca257 commit dc12bce

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Jenkinsfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,15 @@ pipeline {
2929
sh 'sudo cp /home/ec2-user/jenkins/workspace/cicd/target/*.war /opt/apache*/webapps/'
3030
}
3131
}
32+
33+
stage('Master Branch Job') {
34+
when {
35+
branch 'master'
36+
}
37+
steps {
38+
echo 'deploy the artifactories into the master environments'
39+
sh 'sudo cp /home/ec2-user/jenkins/workspace/cicd_master/target/*.war /opt/apache*/webapps/'
40+
}
41+
}
3242
}
3343
}

0 commit comments

Comments
 (0)