Skip to content

Commit f3b736b

Browse files
[green dragon] fix trigger for multibranch pipelines (llvm#741)
Fix triggering Multibranch pipelines
1 parent c3ae2ab commit f3b736b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vars/clangPipeline.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def call(Map config = [:]) {
164164
triggeredJobs.each { job ->
165165
// trigger multibranch pipeline if we expect one
166166
def job_name = env.BRANCH_NAME ? "${job}/${env.BRANCH_NAME.replace('/', '%2F')}" : job
167-
build job: "${job}/${branch}", wait: false
167+
build job: job_name, wait: false
168168
}
169169
}
170170
}
@@ -175,7 +175,7 @@ def call(Map config = [:]) {
175175
triggeredJobs.each { job ->
176176
// trigger multibranch pipeline if we expect one
177177
def job_name = env.BRANCH_NAME ? "${job}/${env.BRANCH_NAME.replace('/', '%2F')}" : job
178-
build job: "${job}/${branch}", wait: false
178+
build job: job_name, wait: false
179179
}
180180
}
181181
}

0 commit comments

Comments
 (0)