开发者

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开发者_如何学C 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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜