We use the python-jenkins (https://pypi.python.org/pypi/python-jenkins) 
library to get node and job info.  Take a look at the get_nodes(), 
get_node_config() and get_node_info() methods.  

On Thursday, June 25, 2015 at 10:27:45 PM UTC-7, Heinonen, Antti wrote:
>
>  Hi,
>
>  Can anybody recommend ways to ask Jenkins master for accurate details 
> about it’s nodes. Mainly hostname/IP Address and display name.
> Currently I am querying the Scriptler with 
>
>  for (aSlave in hudson.model.Hudson.instance.slaves) {
>    println('Name: ' + aSlave.name);
>   println('Hostname: ' + aSlave.getComputer().getHostName());
>  }
>
>  But this method does not work for nodes that are started with the JNLP 
> method. Is there any better way?
>
>  Thanks,
> Antti
>
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/d6f32d1f-9ab6-4bc9-b369-69593f071abe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to