I've figured out how to trigger another Jenkins project build after a successful build, but how do you solve next situation:
Project A triggers project B and C. Project D should only be build if project B and C have successfully been built. I can't configure B to trigger project D because I'm not sure project C has been built yet, and vice versa.
The "build after other projects are built" suggested by Akhil will not accomplish the stated goal. It will trigger Project D after either Project B or Project C is built. Use the Join Plugin.
There is an option in "Build Triggers" option to "Build after other projects are built". Here is the snapshot for the same:
In the Projects to watch, mention: Project B, Project C
(Note that multiple projects are mentioned with a comma separated value)
Alternatively you can orchestrate this with a Pipeline job. For example you could have another job doing this (or you could make job A into a pipeline job and skip the first build
step)
build 'A'
parallel(firstTask: {
build 'B'
}, secondTask: {
build 'C'
})
build 'D'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With