diff --git a/Jenkinsfile b/Jenkinsfile index 5e1ef59..e48cc28 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,7 @@ pipeline { sh 'git submodule update --init --recursive' def branch = sh( - script: "git branch --show-current", + script: 'git branch --show-current 2>/dev/null || echo "DETACHED"', returnStdout: true ).trim()