How to limit Jenkins API response to last n build IDs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to limit Jenkins API response to last n build IDs

Raghav-2

Hi,



http://xxx/api/xml?&tree=builds[number,description,result,id,actions[parameters[name,value]]]


Above API returns all the build IDs. Is there a way to limit results to get last 5 build IDs?


Thanks,

Raghav

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/886ab281-4085-4f66-83e4-98e125551a9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.