Last active
August 29, 2015 14:00
-
-
Save christ66/11067794 to your computer and use it in GitHub Desktop.
Script to go inside folders
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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