Jenkins 一次使用不同的奴隶进行构建

发布于 2024-12-02 13:23:31 字数 299 浏览 3 评论 0原文

将不同版本分发给不同从属设备的最佳方法是什么?

您能否举一些例子,如何限制特定节点或所有节点,或者标记更好?

我需要配置示例。

我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

月依秋水 2024-12-09 13:23:31

如果您有大量工作,贴标签是最好的选择,因为这样更容易管理;您只需标记您的奴隶,然后为每个构建作业添加适当的标签。

如果您的作业数量较少,您还可以将每个单独的作业定义绑定到特定的从属设备 - 在这种情况下,只需将从属设备名称放入“限制此作业可以运行的位置”字段中即可。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文