diff --git a/Jenkinsfile b/Jenkinsfile index 6646b3b..cd46668 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { environment { GIT_REF = """${sh( returnStdout: true, - script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD' + script: 'git describe --tags --exact-match 2>/dev/null || git symbolic-ref --short HEAD 2>/dev/null || git rev-parse --short HEAD' ).trim()}""" } stages {