I need some help accessing programmatically the job names inside a
CloudBees folder (using CloudBees Folders Plugin
<https://wiki.jenkins-ci.org/display/JENKINS/CloudBees+Folders+Plugin>).
I used to use code like this to get all the job names
// Access to the Hudson Singleton
hudsonInstance = hudson.model.Hudson.instance
// Retrieve all Jobs
allItems = hudsonInstance.items
choices=[]
// Create choices list
allItems.each { job ->
choices.add(job.name)
}
return choices
However, now all I get is the list of Cloudbees folders. I would like to
get the job names inside these folders.
Thanks for any feedback.
Ioannis
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" 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-dev/63073489-917f-4f26-81ea-86593feb52f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.