def printSystemProperty(key) { def jenkins = hudson.model.Hudson.instance def slaves = jenkins.slaves slaves.each { def com = it.toComputer() def properties = com.getSystemProperties() if( properties != null ) { def ver = properties[key] if( ver != null ) { println(it.getNodeName()) println(ver) } } } } printSystemProperty("java.version")
0 件のコメント:
コメントを投稿