Re: Retrieving Slave nodes' hostname &/or ip address using Python Rest Api

2015-08-07 Thread Khai Do
Sorry that doesn't retrieve the IP address. It doesn't look like there's a rest endpoint to get all slave's IPs in one call. Looks like you'll need to build that list by making multiple REST requests. I think that's easy enough if you use the library i referenced. You can probably just use t

Re: Retrieving Slave nodes' hostname &/or ip address using Python Rest Api

2015-08-07 Thread Khai Do
It's http://host/computer/api/json or you can use one of the libraries like python-jenkins and there's a get_nodes() method that will also retrieve that info. On Tuesday, August 4, 2015 at 6:12:46 PM UTC-7, Eric Wang wrote: > > I second this question! > > On Friday, April 3, 2015 at 5:09:23 AM

Re: Retrieving Slave nodes' hostname &/or ip address using Python Rest Api

2015-08-04 Thread Eric Wang
I second this question! On Friday, April 3, 2015 at 5:09:23 AM UTC-7, preeti k wrote: > > How can the hostname and ip information of all the slave nodes be > retrieved using Jenkins Python Rest API? > > The only way I have got the host name is by hitting the URL > http:///computer//config.xml.

Retrieving Slave nodes' hostname &/or ip address using Python Rest Api

2015-04-03 Thread preeti k
How can the hostname and ip information of all the slave nodes be retrieved using Jenkins Python Rest API? The only way I have got the host name is by hitting the URL http:///computer//config.xml. But how do I get the list of all hostnames in one go in Python? -- You received this message bec