We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8ca257 commit dc12bceCopy full SHA for dc12bce
Jenkinsfile
@@ -29,5 +29,15 @@ pipeline {
29
sh 'sudo cp /home/ec2-user/jenkins/workspace/cicd/target/*.war /opt/apache*/webapps/'
30
}
31
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
42
43
0 commit comments