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