简体   繁体   English

詹金斯一次与不同的奴隶一起建造

[英]Jenkins builds with different slaves at a time

Whats is the best way to distribute different builds to different slave? 将不同版本分发到不同从站的最佳方法是什么?

Can you give some examples how to restrict to particular node or all nodes or labeling is better? 您能否举一些例子,说明如何限制到特定节点或所有节点,或者标记更好?

I need to configuration examples. 我需要配置示例。

I have 4 slaves 我有4个奴隶

prod1-build prod2-build prod3-build and prod4-build prod1-build prod2-build prod3-build和prod4-build

is it better to give a label as prodbuild adn restrict to prodbuild or 最好给标签作为prodbuild并限制为prodbuild还是

can I give prod1-build || 我可以给prod1-build || prod2-buil || prod2-buil || prod3-build || prod3-build || prod4-build prod4-build

So when ever the build triggers it should pick any one of the above. 因此,无论何时触发构建,都应选择以上任意一项。

Labelling is best if you have a large number of jobs, as it's easier to manage; 如果您有大量工作,最好贴标签,因为它更易于管理; you just label your slaves and then add the appropriate label to each build job. 您只需标记您的奴隶,然后将适当的标签添加到每个构建作业。

If you have a smaller number of jobs, you can also tie each individual job definition to a particular slave - in that case, just put the slave name in the "Restrict where this job can be run" field. 如果作业数量较少,还可以将每个作业定义绑定到特定的从属设备-在这种情况下,只需将从属设备名称放在“限制可以运行此作业的位置”字段中即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM