I have the following Groovy script, called by a Jenkins pipeline job:
import jenkins.model.Jenkins
def foo(){
Jenkins.instance.getNode('bla').getComputer.disconnect()
}
Checking the getComputer()
API, I wasn't able to find a way to also get the IP of the node. Is it possible from within the jenkinsfile / groovy script?