詹金斯中针对特定工作的多个构建队列 [英] 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
.
这篇关于詹金斯中针对特定工作的多个构建队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!