问题
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