How can I trigger a Jenkins job upon completion of a set of other jobs? How can I trigger a Jenkins job upon completion of a set of other jobs? jenkins jenkins

How can I trigger a Jenkins job upon completion of a set of other jobs?


Since you added the jenkins-workflow tag, I guess that using Jenkins Workflow Plugin is ok to you, so perhaps this Workflow script fit your needs:

node {    parallel left: {        build 'left1'        build 'left2'    }, right: {        build 'right1'        build 'right2'    },    failFast: true    build 'zip'}

This workflow will trigger zip as soon as both parallel branches finish.


As far as I can tell, there is no published solution to my problem, so I have to roll my own. The following system groovy script works, but can obviously use some enhancements. Specifically, I really miss a nice simple one page build status overview...

This gist implements my solution, including proper handling of job cancellations: https://gist.github.com/cg-soft/0ac60a9720662a417cfa


You can use Build other projects as Post Build Actions in the configuration of one of your parent job which would trigger second parent job on successful build of the job. When the second parent job also gets completed, trigger your child job by same method.