If I run

println Jenkins.instance.getAllItems().collect {it.fullName}

it works as expected since it does some recursive search:
- http://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html#getAllItems()

But 
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/model/Jenkins.java#L1722-L1729
 
is not exported as it 
is: 
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/model/Jenkins.java#L1676-L1677

I assume no API support for that yet. Does it make sense to raise a ticket? 
or is intended to be like that? Besides of that, if you have any example I 
could reuse to do that search please let me know

Thanks 

On Tuesday, 1 November 2016 12:19:04 UTC, Victor Martinez wrote:
>
> Hi there,
>
>  I'd like to know whether there is an easy way of retrieving the entire 
> list of jobs in one single rest api even when those jobs are in folders 
> without iterating through the rest api by doing traversal search or any 
> other tree search.
>
>  I've found the below suggestion, but I'm not a fan of using hardcoded 
> depth values:
>       
>       
> http://stackoverflow.com/questions/26236206/jenkins-remote-api-is-it-possible-to-retrieve-the-complete-job-tree-using-the
>
> Thanks
>  
>

-- 
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/33348d3b-b0da-419a-b851-af3ec131d3b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to