public class JenkinsUtils extends Object
| Constructor and Description |
|---|
JenkinsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends hudson.model.Describable<T>> |
getDescriptorList(Class<T> klass)
Similar to Jenkins#getDescriptorList() but return empty collection in case
running without Jenkins.
|
static <T extends hudson.ExtensionPoint> |
getExtensionList(Class<T> klass)
Similar to Jenkins#getExtensionList() but return empty collection in case
running without Jenkins.
|
static jenkins.model.Jenkins |
getInstanceOrDie() |
static Collection<hudson.model.Label> |
getLabels() |
static boolean |
isPluginInstalled(String pluginName) |
public static <T extends hudson.ExtensionPoint> List<T> getExtensionList(Class<T> klass)
public static <T extends hudson.model.Describable<T>> List<hudson.model.Descriptor<T>> getDescriptorList(Class<T> klass)
public static boolean isPluginInstalled(String pluginName)
public static Collection<hudson.model.Label> getLabels()
Label used in this Jenkins, or empty set if
Jenkins.getInstance() is null.public static jenkins.model.Jenkins getInstanceOrDie()
Jenkins.getInstance() if that isn't null, or die.Copyright © 2004-2014. All Rights Reserved.