diff --git a/Jenkinsfile b/Jenkinsfile index 43bcb71..442f247 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -142,6 +142,7 @@ spec: container('builder') { sh ''' set -euo pipefail + VERSION_TAG="$(cut -d= -f2 build.env)" docker buildx build \ --platform linux/arm64 \ --tag "${FRONT_IMAGE}:${VERSION_TAG}" \ @@ -159,6 +160,7 @@ spec: container('builder') { sh ''' set -euo pipefail + VERSION_TAG="$(cut -d= -f2 build.env)" docker buildx build \ --platform linux/arm64 \ --tag "${BACK_IMAGE}:${VERSION_TAG}" \ @@ -174,7 +176,10 @@ spec: post { always { - echo "Build complete for ${env.VERSION_TAG}" + script { + def props = fileExists('build.env') ? readProperties(file: 'build.env') : [:] + echo "Build complete for ${props['SEMVER'] ?: env.VERSION_TAG}" + } } } }