Reputation: 435
Using the XML API, how can I construct the query string parameters to get the Last Successful Build time and Last Failed Build time for all jobs?
I have "/api/xml?tree=jobs[name,color]" but need these 2 additional field so I can get an overall status of all jobs on the server.
Upvotes: 1
Views: 1964
Reputation: 58872
you can get it by calling Jenkins server with path:
/job/[job name]/lastSuccessfulBuild/
/job/[job name]/lastFailedBuild/
Upvotes: 3