Class TopLevelItemSelector


  • public class TopLevelItemSelector
    extends Object
    Helper class to provide all top level items configured in Jenkins, excluding other items held in folders, such as maven modules
    • Method Detail

      • getAllTopLevelItems

        public static <T extends ItemList<T> getAllTopLevelItems​(Class<T> clazz)
        Provide all top level items configured in Jenkins
        Parameters:
        clazz - the type to search the ItemGroup for
        Returns:
        all items in the Jenkins ItemGroup tree which are of type TopLevelItem