Finding IP of a Jenkins node

前端 未结 8 1375
慢半拍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:42

    Through the Script Console (Manage Jenkins -> Nodes -> Select a node -> Script Console) of the node we can execute groovy script. Run the following command to get the IP address.

    println InetAddress.localHost.canonicalHostName
    

提交回复
热议问题