Re: How can I see all builds in a job via api/json ?

2014-02-21 Thread Christian Goetze
Hacky solution:

curl -d 'script=println Jenkins.instance.getItem(jobName).builds.each{ 
println ${it.number}:${it.startTimeInMillis}:${it.duration}:${it.result} 
};' http://localhost:8080/scriptText

On Thursday, February 20, 2014 5:35:19 PM UTC-8, Christian Goetze wrote:

 WHen I run url/job/jobname/api/json?tree=builds[url], then I get a 
 list of some builds, but not all the builds I can retrieve via the UI? 
 What's the magic to get all builds?


-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: How can I see all builds in a job via api/json ?

2014-02-21 Thread Daniel Beck
tree=builds will only retrieve the newest 100 builds since 1.485. Use 
tree=allBuilds to get everything. It's hidden by default and only shows up with 
depth=3 or higher (when querying a job).

On 21.02.2014, at 02:35, Christian Goetze christian.goe...@appdynamics.com 
wrote:

 WHen I run url/job/jobname/api/json?tree=builds[url], then I get a list 
 of some builds, but not all the builds I can retrieve via the UI? What's the 
 magic to get all builds?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Jenkins Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to jenkinsci-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.

-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.