Created
May 14, 2018 00:22
-
-
Save endofcake/ed37414917ea17c84818dc7199db544d to your computer and use it in GitHub Desktop.
Trigger an external deployment pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| stage('Start deployment') { | |
| when { | |
| branch 'master' | |
| } | |
| steps { | |
| build job: "Deployment/${serviceName}/${env.BRANCH_NAME}", | |
| propagate: true, | |
| wait: true, | |
| parameters: [ | |
| [$class: 'StringParameterValue', name: 'imageName', value: imageName], | |
| [$class: 'StringParameterValue', name: 'serviceName', value: serviceName], | |
| [$class: 'StringParameterValue', name: 'tag', value: "${env.BUILD_NUMBER}"] | |
| ] | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment