Automatic build chain

24 views
Skip to first unread message

Igal Harel

unread,
Mar 28, 2015, 5:15:18 AM3/28/15
to jenkins...@googlegroups.com
Is it possible to set dependency between builds, so if a change is committed in a dependent build, the complete chine is triggered in the correct order

For example if I have:
1. Build A that depends on B & C
2. A,B & C depends on D

Then, if a change in committed to build D the. I would expect that first B &C will be triggered and only after both B& C builds is complete, build A will be triggered. 

Thanks. 

Brantone

unread,
Mar 30, 2015, 3:40:38 AM3/30/15
to jenkins...@googlegroups.com
Just to be clear, based on your description, the build order would be D -> B -> C -> A ?
Are B + C in parallel??
Yes, there are a number of plugins that do that, a great one is Multi-Job plugin with the concept of phases this can be achieved, especially the parallel execution of B + C, should it be required.

Victoria Wei Lei

unread,
Jul 28, 2015, 5:13:35 PM7/28/15
to Jenkins Users, bre...@letrabb.com
Hello, Igal and Brantone, 

I have similar question.  I am using Multijob plugin to manage a sequence of build jobs, 

I have 3 phases of multijob:
phase 1:  contain jobs A and B
phase 2: contain jobs C and D
phase 3: contain job E and F. 

But jobs within the same phase are executed parallel,  i.e,  A and B run parallel.  But I want B starts only when job A is completed, because some output of Job A will be used for Job B.  In my situation,  Job B is quicker than A, so it may cause issue for entire job chain. 

When I don't use multijob plugin,  I configure job B "build start after another project is done", which is job A,  so I can make sure Job A runs first.  With this multijob plug, how to solve my problem. 

I want to use multijob plugin for its other advantage,  therefore, I do prefer using this plugin to manage my build jobs. 

Thanks
Victoria Lei 
Reply all
Reply to author
Forward
0 new messages