the python-jenkins[1] app has a convenient get_running_builds() [2] method 
that can retrieve this type of info.

[1] https://pypi.python.org/pypi/python-jenkins
[2] 
https://python-jenkins.readthedocs.org/en/latest/api.html#jenkins.Jenkins.get_running_builds



On Friday, September 5, 2014 at 11:07:25 AM UTC-7, Marcus Müller wrote:
>
> Cool, 
>
> I'm fine with XML. 
> Thanks a lot. 
>
> Marcus 
>
> > Am 05.09.2014 um 18:36 schrieb Daniel Beck <[email protected] 
> <javascript:>>: 
> > 
> > There is no CLI command for this in core. 
> > 
> > For the XML/JSON APIs, the following works: 
> > /computer/XYZ/api/xml?tree=executors[currentExecutable[*]] 
> > 
> >> On 05.09.2014, at 17:30, [email protected] <javascript:> 
> wrote: 
> >> 
> >> Dear Contributors, devs and users, 
> >> 
> >> I'm having problems to find a proper solution for getting a list of all 
> active jobs by node. 
> >> Through api I get lists of all slaves, and somerwhere else I get a list 
> of all jobs being build right 
> >> at the moment. But my feeling tells me, that there also must be a way, 
> to get a list of jobs, 
> >> running on node "XYZ". 
> >> 
> >> Many thnks in advance, 
> >> 
> >> marcus 
> >> 
> >> -- 
> >> 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] <javascript:>. 
> >> For more options, visit https://groups.google.com/d/optout. 
> > 
> > -- 
> > 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] <javascript:>. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/53aee5a4-7a2b-45aa-a6a4-4eb2e362210b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to