jenkinsfile

This commit is contained in:
Daniel Appelgren
2021-09-08 12:05:44 +02:00
parent 51e6389e1d
commit 01d5b8cd17
2 changed files with 7 additions and 6 deletions

View File

@@ -186,12 +186,12 @@ pipeline {
// Wait for approval
timeout(time:1440, unit:'MINUTES') {
input message: "Go Live with ${ appname } in Production?", ok: "Confirm"
def label = "${ env.BUILD_TAG }"
utilities.rollout("${ appname }", "${ appname }", "latest", label, PROJECT_CONTAINING_IMAGES, REGISTRY, USE_CONFIG_MAP, "${ CONFIG_MAP_KEY }", CONFIG_MAP_PATH)
//openshift.raw("tag nexus.arbetsformedlingen.se:5555/app-af-nexus/${ appname }:${BUILD_TAG} ${appname}:${BUILD_TAG} --insecure")
//openshift.raw("tag ${ appname }:latest ${ appname }:${BUILD_TAG}")
//openshift.raw("set image dc/${ appname } ${ appname }=nexus.arbetsformedlingen.se:5555/app-af-nexus/${ appname }:${BUILD_TAG} --record=true --source=docker")
//openshift.selector("dc", "${ appname }").rollout().status();
// def label = "${ env.BUILD_TAG }"
// utilities.rollout("${ appname }", "${ appname }", "latest", label, PROJECT_CONTAINING_IMAGES, REGISTRY, USE_CONFIG_MAP, "${ CONFIG_MAP_KEY }", CONFIG_MAP_PATH)
openshift.raw("tag nexus.arbetsformedlingen.se:5555/app-af-nexus/${ appname }:${BUILD_TAG} ${appname}:${BUILD_TAG} --insecure")
openshift.raw("tag ${ appname }:latest ${ appname }:${BUILD_TAG}")
openshift.raw("set image dc/${ appname } ${ appname }=nexus.arbetsformedlingen.se:5555/app-af-nexus/${ appname }:${BUILD_TAG} --record=true --source=docker")
openshift.selector("dc", "${ appname }").rollout().status();
echo '### Deployed to prod! ###'
}
}