Dim
Dim

Reputation: 4827

Jenkins project order

Hi I have project flow that I need help with. I have multiple projects that start one global project and then some other projects, the problem is the order if I start more than one project simultaneously. For example I have project a and b and I start them at the same time. What I need to happen.

when finished, then

But what happens actually in my project queue:

So how can I lock whole process and not let project b enter to queue until c finished?

Upvotes: 4

Views: 1965

Answers (1)

yorammi
yorammi

Reputation: 6458

Try those 2 options (or a mix of the 2):

  1. Use a wrapping job that triggers the jobs in the required order. For that you can use Jenkins pipeline (build step) job or MultiJob or any plugin that enables you to control the jobs order and dependencies.
  2. Prevent certain jobs to run in parallel by using Throttle Concurrent Builds Plugin.

Upvotes: 5

Related Questions