deploymentking
1/28/2019 - 11:58 AM

Set node labels

#!groovy

import jenkins.model.*

def jenkins = Jenkins.getInstance()

jenkins.computers.each { c ->
    c.node.setLabelString("C4XLarge CxXLNonDeploy MasterNodeOnly StandardSlave")
}