Skip to content
Snippets Groups Projects
Commit 61b7fecf authored by Nicolas Dandrimont's avatar Nicolas Dandrimont
Browse files

Only update jenkins jobs on PUSH trigger to the master branch

The old job would trigger the jobs update on a merge request with source
branch "master", e.g. from a fork.
parent 3cc257c0
No related branches found
No related tags found
1 merge request!156Only update jenkins jobs on PUSH trigger to the master branch
Pipeline #203 passed
...@@ -36,8 +36,8 @@ pipeline { ...@@ -36,8 +36,8 @@ pipeline {
// really update jenkins jobs configuration when pushing commits to master // really update jenkins jobs configuration when pushing commits to master
// or when manually triggering the job from Jenkins UI // or when manually triggering the job from Jenkins UI
anyOf { anyOf {
expression { !env.gitlabSourceBranch } expression { "${env.gitlabActionType}" == "PUSH" && "${env.gitlabBranch}" == "master" }
expression { "${env.gitlabSourceBranch}" == "master" } expression { !env.gitlabActionType }
} }
} }
steps { steps {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment