Skip to content

Instantly share code, notes, and snippets.

@bvcelari
Created January 13, 2020 11:36
Show Gist options
  • Save bvcelari/36d34158d10098a05744e2a1123405c7 to your computer and use it in GitHub Desktop.
Save bvcelari/36d34158d10098a05744e2a1123405c7 to your computer and use it in GitHub Desktop.
def all = [ Jenkins.instance ]
all.addAll(Jenkins.instance.nodes)
all.each {
def c = it.toComputer()
println "[$it.nodeName] - $it.numExecutors - $it.assignedLabels - $it.acceptingTasks - $it.nodeProperties - $c.offline"
}
println "----"
Jenkins.instance.queue.items.each {
println "$it.id $it.blocked $it.buildable $it.stuck $it.assignedLabel $it.causes"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment