more than one build in queue for specific job in j

2019-03-18 18:29发布

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?

2条回答
在下西门庆
2楼-- · 2019-03-18 18:59

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.

查看更多
做个烂人
3楼-- · 2019-03-18 19:10

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.

查看更多
登录 后发表回答