0

I need an API call that shows all the parameters for each build of a jenkins job that are currently running.

In other words, I want to see a list of all the current builds of job example-job, with the parameters used on each one.

I know you can do the following to get a list of currently running builds for all jobs.

http://<jenkins.url>/computer/api/xml?tree=computer[executors[currentExecutable[url]],oneOffExecutors[currentExecutable[url]]]&xpath=//url&wrapper=builds

And I know I can do the following to get a single build's parameters.

http://<jenkins.url>/job/<example-job>/<build-number>/api/json?pretty=true

I could use the first list to populate the second command and loop over those, but that seems like an excessive amount of overhead. Is there any way to combine those two calls into one?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.