Search in sources :

Example 1 with GlobalConfigurationCategory

use of jenkins.model.GlobalConfigurationCategory in project configuration-as-code-plugin by jenkinsci.

the class RootElementConfigurator method all.

static List<RootElementConfigurator> all() {
    List<RootElementConfigurator> configurators = new ArrayList<>();
    final Jenkins jenkins = Jenkins.getInstance();
    configurators.addAll(jenkins.getExtensionList(RootElementConfigurator.class));
    for (GlobalConfigurationCategory category : GlobalConfigurationCategory.all()) {
        configurators.add(new GlobalConfigurationCategoryConfigurator(category));
    }
    return configurators;
}
Also used : Jenkins(jenkins.model.Jenkins) ArrayList(java.util.ArrayList) GlobalConfigurationCategory(jenkins.model.GlobalConfigurationCategory)

Aggregations

ArrayList (java.util.ArrayList)1 GlobalConfigurationCategory (jenkins.model.GlobalConfigurationCategory)1 Jenkins (jenkins.model.Jenkins)1