try git ref
Some checks are pending
Build Multiarch Container Image / call-reusable-workflow (push) Waiting to run

This commit is contained in:
Sebastian Hugentobler 2025-06-03 19:00:37 +02:00
parent a8893650b9
commit 4dd03168f1
Signed by: shu
SSH key fingerprint: SHA256:ppcx6MlixdNZd5EUM1nkHOKoyQYoJwzuQKXM6J/t66M

5
Jenkinsfile vendored
View file

@ -1,10 +1,7 @@
pipeline { pipeline {
agent none agent none
environment { environment {
GIT_REF = sh( GIT_REF = sh(script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD', returnStdout: true)
returnStdout: true,
script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD'
).trim()
} }
stages { stages {
stage('Build') { stage('Build') {