Jenkinsfile: fix test for GIT_BRANCH

This commit is contained in:
Benjamin Dauvergne 2020-04-15 12:02:33 +02:00
parent ae94d20104
commit 01ee94e541
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -35,7 +35,7 @@ pipeline {
stage('Packaging') {
steps {
script {
if (env.JOB_NAME == 'authentic2-auth-kerberos' && env.GIT_BRANCH == 'origin/master') {
if (env.JOB_NAME == 'authentic2-auth-kerberos' && (!env.GIT_BRANCH || env.GIT_BRANCH != 'origin/master')) {
sh 'sudo -H -u eobuilder /usr/local/bin/eobuilder authentic2-auth-kerberos'
}
}