MillinMo
MillinMo

Reputation: 435

How can I get the Last Successful Build time and Last Failed Build time Jenkins

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

Answers (1)

Ori Marko
Ori Marko

Reputation: 58872

you can get it by calling Jenkins server with path:

/job/[job name]/lastSuccessfulBuild/

/job/[job name]/lastFailedBuild/

Upvotes: 3

Related Questions