Jenkins中有多个针对特定工作的排队队列 [英] more than one build in queue for specific job in jenkins
问题描述
我有一个作业,该作业使用wget
与另一个作业的参数一起触发.每次给作业指定不同的参数-运行哪个svn
修订版.
我不想允许同一作业的并发运行,但是我希望在该作业的队列中允许多个挂起的构建.
从我尝试过的方法来看,它不管用,无论我触发多少个构建,我都只能在队列中看到一个待完成的构建.
可以使用任何插件吗?
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?
推荐答案
Jenkins如果已包含具有相同参数值的构建,则不会将其放置在队列中.
Jenkins doesn't place a build in the queue if it already contains one with the same param values.
要欺骗它,您可以添加一个未使用的附加参数,并在调用wget
时将其设置为随机值.
To trick it, you could add an additional, unused param, and set it to a random value when calling wget
.
这篇关于Jenkins中有多个针对特定工作的排队队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!