def getOnlineComputers() {
def nodes = []
def allNodes = Jenkins.getInstance().getNodes()
for (x in allNodes) {
def node = x
allNodes.each{node ->
if (node.toComputer() && !node.toComputer().isOffline() && !node.toComputer().isTemporarilyOffline()) {
nodes << node
}
}
}
return nodes
}
More than 5 years have passed since last update.
JenkinsPipeline オンラインのノードを取得するスクリプト
0
Last updated at Posted at 2019-12-13
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme