Skip to content
Snippets Groups Projects

Only update jenkins jobs on PUSH trigger to the master branch

Merged Nicolas Dandrimont requested to merge olasd/swh-jenkins-jobs:mr/proper-jjb-trigger into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
@@ -36,8 +36,8 @@ pipeline {
// really update jenkins jobs configuration when pushing commits to master
// or when manually triggering the job from Jenkins UI
anyOf {
expression { !env.gitlabSourceBranch }
expression { "${env.gitlabSourceBranch}" == "master" }
expression { "${env.gitlabActionType}" == "PUSH" && "${env.gitlabBranch}" == "master" }
expression { !env.gitlabActionType }
}
}
steps {
Loading