Skip to content

Instantly share code, notes, and snippets.

@christ66
Last active August 29, 2015 14:00
Show Gist options
  • Save christ66/11067794 to your computer and use it in GitHub Desktop.
Save christ66/11067794 to your computer and use it in GitHub Desktop.
Script to go inside folders
goInsideFolder(Jenkins.instance.items)
public void goInsideFolder(List<TopLevelItem> items) {
for ( TopLevelItem item : items) {
if (item instanceof com.cloudbees.hudson.plugins.folder.Folder) {
goInsideFolder(item.getItems());
}
else {
println item.fullName;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment