jenkins_url
+ /api/json?tree=jobs[name,color]
jenkins_url
+ /job/${job_name}/api/json?tree=builds[number,status,timestamp,id,result]
- all build info:
jenkins_url
+ /job/${job_name}/lastBuild/api/json
- build progress:
jenkins_url
+ /job/${job_name}/lastBuild/api/json?tree=result,timestamp,estimatedDuration
timestamp = start time
estimatedDuration = duration
How do I get all jobs including those within folders?
EDIT: Found this which is an answer, but not a very satisfying one:
https://stackoverflow.com/questions/26236206/jenkins-remote-api-is-it-possible-to-retrieve-the-complete-job-tree-using-the