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
$ curl -g http://admin:d8e8c63306e04c8b8aafade1275697b3@localhost:8080/job/sss/api/json?tree=builds[id,queueId,url] 2>/dev/null | python -m json.tool
Instead of the credentials like this - can we use some api token?