Finding IP of a Jenkins node

前端 未结 8 1362
慢半拍i
慢半拍i 2020-12-23 15:52

A windows slave node connected to Jenkins server through \"Java web start\". The system information of the node doesn\'t have it\'s IP address.

I had to run through

8条回答
  •  天涯浪人
    2020-12-23 16:40

    To answer this same question on a non-windows Jenkins slave:

    Get the IP address:

    println "ifconfig".execute().text
    

    Get the hostname:

    println "hostname".execute().text
    

提交回复
热议问题