Frank Winkler
Frank Winkler

Reputation: 419

Start build after finishing some others

We have some builds that depents on each other in a kind of tree structure:

...

Another build should be triggered if all of these builds have finished. Unfortunatelly it is not possible to say which build will be always the last that finished to use this to trigger the following task.

Is there a chance (maybe a plugin) that allows to trigger a new build when each build of a list of builds has finished?

Thanks in advance! Frank

Upvotes: 0

Views: 460

Answers (2)

Kevin P.
Kevin P.

Reputation: 1452

Although this is an old question, you might consider restructuring your build pipeline completely using the Build Flow Plugin

https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin

It will have the advantage of keeping your pipeline logic in one place.

Upvotes: 1

hyde
hyde

Reputation: 62777

Take a look at Join Plugin:

https://wiki.jenkins-ci.org/display/JENKINS/Join+Plugin

This plugin allows a job to be run after all the immediate downstream jobs have completed. In this way, the execution can branch out and perform many steps in parallel, and then run a final aggregation step just once after all the parallel work is finished.

Upvotes: 2

Related Questions