active jobs by node

14 views
Skip to first unread message

mail4m....@googlemail.com

unread,
Sep 5, 2014, 11:30:52 AM9/5/14
to jenkins...@googlegroups.com
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

Daniel Beck

unread,
Sep 5, 2014, 12:36:39 PM9/5/14
to jenkins...@googlegroups.com
There is no CLI command for this in core.

For the XML/JSON APIs, the following works:
/computer/XYZ/api/xml?tree=executors[currentExecutable[*]]
> --
> 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 jenkinsci-use...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Marcus Müller

unread,
Sep 5, 2014, 2:07:25 PM9/5/14
to jenkins...@googlegroups.com
Cool,

I'm fine with XML.
Thanks a lot.

Marcus

Khai Do

unread,
Oct 4, 2015, 12:16:57 PM10/4/15
to Jenkins Users, mail4m....@googlemail.com
the python-jenkins[1] app has a convenient get_running_builds() [2] method that can retrieve this type of info.

Reply all
Reply to author
Forward
0 new messages