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
Thanks for a nice snippet. Could anyone please explain, is it possible to lool for a job with particular parameters on the server side. I know it's possible to request all the available builds. For instance:
But is it possible to get the job with particular parameter? Say, where
queueId == 20
.