Remove platform from source images in Jenkinsfile

This commit is contained in:
Parra 2022-02-27 18:38:02 +01:00
parent 5839145583
commit ecc301d337
1 changed files with 2 additions and 2 deletions

4
Jenkinsfile vendored
View File

@ -48,10 +48,10 @@ pipeline {
script {
stage("Build ${PLATFORM}") {
script {
SOURCE_IMAGE = SOURCE+':'+PLATFORM.tokenize('/')[1]
SOURCE_IMAGE = SOURCE
TARGET_IMAGE = TARGET+':'+PLATFORM.tokenize('/')[1]
if (env.BRANCH_NAME.startsWith('release/')) {
SOURCE_IMAGE += "." + VERSION
SOURCE_IMAGE += ":" + VERSION
TARGET_IMAGE += "." + VERSION
} else {
TARGET_IMAGE += VERSION