I've seen a few examples of ways to trigger a pipeline when an upstream job 
is updated:

triggers {
  upstream(upstreamProjects: "/myjob/mybranch", threshold: hudson.model.
Result.SUCCESS)
}


properties([
    pipelineTriggers([
        upstream(
            upstreamProjects: '/myjob/mybranch',
            threshold: hudson.model.Result.SUCCESS,
        ),
    ]),
])


But, is there a way trigger on all of an upstream job's branches? Like it 
just looks at the whole job instead of just one branch, and then triggers 
if any of its branches are updated. Also, for this to be useful to me, if 
its even possible, I would also need a way of getting the name of each 
branch that triggered the downstream job.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/bd271f63-f549-4f65-aa22-bb0718a87bd3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to