Jenkins中有多个针对特定工作的排队队列 [英] more than one build in queue for specific job in jenkins

查看:208
本文介绍了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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆