From 131bb7b36066ccafb02bd9617b41831117edadfd Mon Sep 17 00:00:00 2001 From: Erik Tiekstra Date: Wed, 17 Nov 2021 13:39:08 +0100 Subject: [PATCH] Updated Jenkinsfiles to use build tag instead of latest --- openshift/acc/Jenkinsfile | 2 +- openshift/next/Jenkinsfile | 2 +- openshift/playground/Jenkinsfile | 2 +- openshift/sys/Jenkinsfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/openshift/acc/Jenkinsfile b/openshift/acc/Jenkinsfile index 3b0f720..4a27fa8 100644 --- a/openshift/acc/Jenkinsfile +++ b/openshift/acc/Jenkinsfile @@ -113,7 +113,7 @@ pipeline { openshift.withCluster() { openshift.withProject(utv_project) { openshift.selector("bc", "${ appname }").startBuild("--from-dir=${dist_path}", "--wait=true") - openshift.tag("${ appname }:latest", "${ appname }:${BUILD_TAG}") + openshift.tag("${ appname }:${BUILD_TAG}", "${ appname }:${BUILD_TAG}") } } } diff --git a/openshift/next/Jenkinsfile b/openshift/next/Jenkinsfile index 31d0352..d054f96 100644 --- a/openshift/next/Jenkinsfile +++ b/openshift/next/Jenkinsfile @@ -109,7 +109,7 @@ pipeline { openshift.withCluster() { openshift.withProject(utv_project) { openshift.selector("bc", "${ appname }").startBuild("--from-dir=${dist_path}", "--wait=true") - openshift.tag("${ appname }:latest", "${ appname }:${BUILD_TAG}") + openshift.tag("${ appname }:${BUILD_TAG}", "${ appname }:${BUILD_TAG}") } } } diff --git a/openshift/playground/Jenkinsfile b/openshift/playground/Jenkinsfile index 8c2b23d..f63db3f 100644 --- a/openshift/playground/Jenkinsfile +++ b/openshift/playground/Jenkinsfile @@ -109,7 +109,7 @@ pipeline { openshift.withCluster() { openshift.withProject(utv_project) { openshift.selector("bc", "${ appname }").startBuild("--from-dir=${dist_path}", "--wait=true") - openshift.tag("${ appname }:latest", "${ appname }:${BUILD_TAG}") + openshift.tag("${ appname }:${BUILD_TAG}", "${ appname }:${BUILD_TAG}") } } } diff --git a/openshift/sys/Jenkinsfile b/openshift/sys/Jenkinsfile index 90c6ec1..5355653 100644 --- a/openshift/sys/Jenkinsfile +++ b/openshift/sys/Jenkinsfile @@ -111,7 +111,7 @@ pipeline { openshift.withCluster() { openshift.withProject(utv_project) { openshift.selector("bc", "${ appname }").startBuild("--from-dir=${dist_path}", "--wait=true") - openshift.tag("${ appname }:latest", "${ appname }:${BUILD_TAG}") + openshift.tag("${ appname }:${BUILD_TAG}", "${ appname }:${BUILD_TAG}") } } }