Force build tag from computed semver

This commit is contained in:
Brad Stein 2025-12-18 11:30:17 -03:00
parent 4c810078e2
commit f286211363

7
Jenkinsfile vendored
View File

@ -142,6 +142,7 @@ spec:
container('builder') { container('builder') {
sh ''' sh '''
set -euo pipefail set -euo pipefail
VERSION_TAG="$(cut -d= -f2 build.env)"
docker buildx build \ docker buildx build \
--platform linux/arm64 \ --platform linux/arm64 \
--tag "${FRONT_IMAGE}:${VERSION_TAG}" \ --tag "${FRONT_IMAGE}:${VERSION_TAG}" \
@ -159,6 +160,7 @@ spec:
container('builder') { container('builder') {
sh ''' sh '''
set -euo pipefail set -euo pipefail
VERSION_TAG="$(cut -d= -f2 build.env)"
docker buildx build \ docker buildx build \
--platform linux/arm64 \ --platform linux/arm64 \
--tag "${BACK_IMAGE}:${VERSION_TAG}" \ --tag "${BACK_IMAGE}:${VERSION_TAG}" \
@ -174,7 +176,10 @@ spec:
post { post {
always { 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}"
}
} }
} }
} }