Using ?tree=allBuilds[number]  is the answer...


On Tuesday, September 1, 2015 at 10:54:27 PM UTC+2, khmarbaise wrote:
>
> I have tried to get information about jobs of my jenkins via REST API 
> simply like this:
>
> http://server/job/JOBNAME/api/json?pretty
>
> but there is a limitation in number of results...
>
> I would understand if there is default to give max. number of 100 results 
> back..but the question is: I would like to have all results or a limited 
> number? Does exist a parameter for this?
>
> After diving into this a little bit more i tried one of the following:
>
> http://server/job/JOBNAME/api/json?tree=builds[number]{1,10}
>
>  so this prints out 10 entries...ok so i tried to get 100 which seemed to 
> be working
>
> http://server/job/JOBNAME/api/json?tree=builds[number]{1,100}
>
> but if i try to get more than 100 entries like this:
>
> http://server/job/JOBNAME/api/json?tree=builds[number]{1,150}
>
> it gave me the same number of results...which looks like a problem which i 
> don't understand or it is a bug...?
>
>
> Kind regards
> Karl Heinz Marbaise
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cfc12ee8-d858-4065-a466-9592b00f7487%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to