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