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
The "property" item of the job JSON is some sort of list of anonymous objects:
"property":[ { "parameterDefinitions":[ { "defaultParameterValue":{ "name":"BUILD_CONFIG", "value":"BJX" }, "description":"", "name":"BUILD_CONFIG", "type":"StringParameterDefinition" }, .... <snip> .... ] }, {} ],
So it's difficult to make a tool to get this in C# since you can't make a class with an anonymous list - the object has to have a name. I'm sort of stuck on getting my parameter definitions here....