Jenkins Groovy: Update the labels in all nodes

别来无恙 提交于 2021-01-28 06:30:55

问题


I have a few hundred jenkins nodes and need to update the labels in all of them.

It seems the easiest would be to run a groovy script in the Jenkins master script console that would add the extra label to each node's config.

Question: How would one do this in groovy?

来源:https://stackoverflow.com/questions/56207343/jenkins-groovy-update-the-labels-in-all-nodes

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!