Skip to content

Commit

Permalink
Promote To ${env.STAGE1} required
Browse files Browse the repository at this point in the history
Tag step is missing.
  • Loading branch information
charlbrink authored Apr 13, 2018
1 parent 5633d41 commit 69e2bc9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blue-green-spring/pipeline.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ node('maven') {
"""
}

stage("Promote To ${env.STAGE1}") {
sh """
${env.OC_CMD} tag ${env.NAMESPACE}/${env.APP_NAME}:latest ${env.STAGE1}/${env.APP_NAME}:latest
"""
}

stage("Verify Deployment to ${env.STAGE1}") {

openshiftVerifyDeployment(deploymentConfig: "${env.APP_NAME}", namespace: "${STAGE1}", verifyReplicaCount: true)
Expand Down

0 comments on commit 69e2bc9

Please sign in to comment.