oshai
oshai

Reputation: 15355

more than one build in queue for specific job in jenkins

I have a job which I trigger with parameters from another job using wget. each time I give the job different parameter - which svn revision to run with.
I don't want to allow concurrent runs of the same job, but I want to allow more than one pending build in the queue for the job.
From what I have tried it didn't work, I see in the queue only one build of the job pending, no matter how many builds I trigger.
Is it possible with any plugin?

Upvotes: 13

Views: 9962

Answers (2)

Dave Hunt
Dave Hunt

Reputation: 8223

I needed to do the same, and discovered the Random String Parameter Plugin. This adds a random string to each build as a parameter, which is enough to make each build unique and for Jenkins to queue them independently rather than coalesce them.

Upvotes: 7

socha23
socha23

Reputation: 10239

Jenkins doesn't place a build in the queue if it already contains one with the same param values.

To trick it, you could add an additional, unused param, and set it to a random value when calling wget.

Upvotes: 22

Related Questions