Finding IP of a Jenkins node

前端 未结 8 1360
慢半拍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
    
    0 讨论(0)
  • 2020-12-23 16:44

    Can also be found through the Jenkins UI: Manage Jenkins --> Manage Nodes --> Click Node name --> Configure

    This should display both the public and private ip address of that node

    0 讨论(0)
提交回复
热议问题