Hi,
You can do it from Jenkins itself.
For example, in our case we want the exact opposite, so we have in our pipeline:
stage('Setup') {
when {
beforeAgent true
anyOf {
triggeredBy 'UpstreamCause'
triggeredBy 'UserIdCause'
}
}
steps {
The above tells Jenkins to run the steps only if the build has been triggered by an upstream job or by a user.
To get what you want, you need a similar thing in repo_a, repo_b and repo_c that triggers the repo_main when webhook arrives:
stage('Setup') {
when {
beforeAgent true
anyOf {
triggeredBy 'SomethingGitHubTrigger' // look on internet for the exact name, I don’t know
triggeredBy 'UserIdCause'
}
}
steps {
build([
job:
"Your repo_main job",
wait: false,
propagate: false
])
And then everytime someone pushed on repo_a/b/c then the repo_main build is triggered on cascade.
I hope that helps.
Cheers,
Gianluca.
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ac0642e3-13e3-4945-86b9-6fa93bbc0e9cn%40googlegroups.com.