Volodymyr Bezuglyy
Volodymyr Bezuglyy

Reputation: 16785

Do not run some job until some other job is running

I have two different jobs.
These jobs could be started independently of each other.
But they work with the same object.
And I would like to have only one of these jobs running at the same time.

Is it possible to configure job in Hudson/Jenkins to do not run until some other jobs are running?

Upvotes: 0

Views: 202

Answers (3)

Mudzaffar Mansor
Mudzaffar Mansor

Reputation: 27

point the job to run on a specific environment which limit the job to run simultaneously. with this the second job will be in the queue rather than running together

Upvotes: 0

mahinlma
mahinlma

Reputation: 1248

Use Build triggers - Build after other projects are built.

Use this trigger option to achieve your task.

Upvotes: 0

Lars Kotthoff
Lars Kotthoff

Reputation: 109232

Have a look at the locks and latches plugin. If I understood your question correctly, it does exactly what you want.

Upvotes: 1

Related Questions