From 69e2bc961cfe94269ba2d8acb73c9459840c88e7 Mon Sep 17 00:00:00 2001 From: Charl Brink Date: Fri, 13 Apr 2018 09:24:05 +0200 Subject: [PATCH] Promote To ${env.STAGE1} required Tag step is missing. --- blue-green-spring/pipeline.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/blue-green-spring/pipeline.groovy b/blue-green-spring/pipeline.groovy index 80ffbb71..23309cd6 100644 --- a/blue-green-spring/pipeline.groovy +++ b/blue-green-spring/pipeline.groovy @@ -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)