Updated Jenkinsfiles to use build tag instead of latest

This commit is contained in:
Erik Tiekstra
2021-11-17 13:39:08 +01:00
parent 43ed187f27
commit 131bb7b360
4 changed files with 4 additions and 4 deletions

View File

@@ -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}")
}
}
}

View File

@@ -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}")
}
}
}

View File

@@ -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}")
}
}
}

View File

@@ -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}")
}
}
}