Reputation: 914
I have a set of components, one being the base component (A) and all others (B1 .. Bn) being dependent on the base component.
I have Jenkins jobs for each component which are triggered by SCM changes on the respective repositories. Now I would like to configure that a job of a Bx component waits if the base component A is currently building in order to have the latest build of A incorporated in its own build.
I looked at "throttle concurrent builds" plugin but I think I cannot use it in this case. Also I found code snippets to detect if another specific job is running. But then, how do I let the current job wait until the other is finished?
Upvotes: 5
Views: 12487
Reputation: 1123
Try Build Blocker plugin, it does exactly what you need: you can specify job name of A
component in Blocking jobs
section for every job of Bx
components.
Upvotes: 6