Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save pascal-hofmann/8881e802db14254ee44bcd3c64e8dc7f to your computer and use it in GitHub Desktop.
Save pascal-hofmann/8881e802db14254ee44bcd3c64e8dc7f to your computer and use it in GitHub Desktop.
Determine how jenkins agents are connected to the controller
Jenkins.instance.slaves.each {
agent ->
println("${agent.name} ${agent.computer.getSystemProperties()["sun.java.command"]}")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment