Jenkinsfile: fix test for GIT_BRANCH
This commit is contained in:
parent
ae94d20104
commit
01ee94e541
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue