Last active
September 7, 2016 18:53
-
-
Save tizki/0e46677e5f65c901826cb0e3ba11ae9b to your computer and use it in GitHub Desktop.
This scripts shows how to get basic information about Jenkins instance
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* This scripts shows how to get basic information about Jenkins instance */ | |
def jenkins = Jenkins.getInstance() | |
println "Jenkins version: ${jenkins.getVersion()}" | |
println "Available JDKs: ${jenkins.getInstance().getJDKs()}" | |
println "Connected Nodes:" | |
jenkins.getNodes().each{ | |
println it.displayName | |
} | |
println "Configured labels: ${jenkins.getLabels()}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment