I'm trying to get some information of my current jenkins instance running jobs in a bash script. What I want to do is getting a list of all the current jobs running given a parameter.
Something like (this doesn't work):
https://jenkins.{company}.com/computer/api/xml?tree=computer[executors[currentExecutable[*]],oneOffExecutors[currentExecutable[*]]]&xpath=/hudson/job[build/action/parameter[name="TAG"][value="web-2773"]]&wrapper=builds