How to find the ip address of a jenkins node from the master -
Master node is running from scripting console, or how do system groovy scripts (which runs on the master), Do I get the IP address (s) of a slave node?
I expected that this simple script is sufficient:
import Java.net * For (slaves in Jenkins instant slaves) {host = slave.computer.hostName addr = InetAddress.getAllByName (host) println slave.name + ":" + Addr.hostAddress} But at least with my establishment, it does not give me the results that I want on systems that have many network interfaces.
You can call "code" / sbin / ifconfig
Comments
Post a Comment