Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Parallel Trigger and Wait

I have 4 jobs which needs to be executed in the following sequence

JOB A 
 |------> JOB B
 |------> JOB C 
            |------> JOB D

In the above

  1. A should trigger B & C parallely and C inturn triggers D.
  2. A should hold the job as running till all 3 of them completed.

I tried the following plugins and couldn't achieve what I am looking for

  • Join Plugin
  • Multijob Plugin
  • Multi-Configuration Project
  • Paramterized Trigger Plugin

Is there any plugin which I haven't tried would help me in resolving this. Or is this can be achieved in a different way. Please advise.

like image 686
raksja Avatar asked Oct 16 '12 22:10

raksja


2 Answers

Use DSL Script with Build Flow plugin.

try this Example for your execution:

   build("job A")

   parallel
   (
      {build("job B")}
      {build("job C")}
   )

   build("job D")
like image 116
mahinlma Avatar answered Oct 11 '22 11:10

mahinlma


Try the Locks and Latches plugin.

like image 30
gareth_bowles Avatar answered Oct 11 '22 09:10

gareth_bowles