Jenkins 一次使用不同的奴隶进行构建
将不同版本分发给不同从属设备的最佳方法是什么?
您能否举一些例子,如何限制特定节点或所有节点,或者标记更好?
我需要配置示例。
我有 4 个奴隶
prod1-build 产品2-构建 prod3-build 和 prod4-build
最好给一个标签作为 prodbuild 并将其限制为 prodbuild 或者
我可以给 prod1-build || prod2-构建 || prod3-构建 || prod4-build
因此,当构建触发时,它应该选择上述任何一项。
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
prod1-build
prod2-build
prod3-build and prod4-build
is it better to give a label as prodbuild adn restrict to prodbuild or
can I give prod1-build || prod2-buil || prod3-build || prod4-build
So when ever the build triggers it should pick any one of the above.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有大量工作,贴标签是最好的选择,因为这样更容易管理;您只需标记您的奴隶,然后为每个构建作业添加适当的标签。
如果您的作业数量较少,您还可以将每个单独的作业定义绑定到特定的从属设备 - 在这种情况下,只需将从属设备名称放入“限制此作业可以运行的位置”字段中即可。
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.