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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -