Coding Spirit

一位程序员,比较帅的那种

0%

Jenkins: Check Online/Offline Salve Nodes

Manage Jenkins > Script Console

1
2
3
4
5
for (node in Jenkins.instance.nodes) {
println "${node.name}, ${node.numExecutors}"
def computer = node.computer
println "Online: ${computer.online}, ${computer.connectTime} (${computer.offlineCauseReason})"
}