Package hudson.plugins.chucknorris
Class ChuckNorrisConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
hudson.plugins.chucknorris.ChuckNorrisConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
@Extension
@Symbol("chuckNorris")
public final class ChuckNorrisConfiguration
extends GlobalConfiguration
Facts that administrators add on top of the built-in ones, on the Manage Jenkins > Appearance page or through
Configuration as Code (
appearance: chuckNorris:).-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChuckNorrisConfigurationget()Gets the configuration.Shows this configuration on the Manage Jenkins > Appearance page, since it only changes what builds show.Gets the custom facts, one per non-blank line, trimmed.Gets the custom facts, one per line.booleanWhether builds pick only from the custom facts.voidsetCustomFacts(String customFacts) Sets the custom facts, one per line.voidsetCustomFactsOnly(boolean customFactsOnly) Sets whether builds pick only from the custom facts.Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
ChuckNorrisConfiguration
public ChuckNorrisConfiguration()
-
-
Method Details
-
get
Gets the configuration.- Returns:
- the configuration
-
getCategory
Shows this configuration on the Manage Jenkins > Appearance page, since it only changes what builds show.- Overrides:
getCategoryin classDescriptor<GlobalConfiguration>- Returns:
- the appearance category
-
getCustomFacts
Gets the custom facts, one per line.- Returns:
- the custom facts, or null if there are none
-
setCustomFacts
Sets the custom facts, one per line.- Parameters:
customFacts- the custom facts
-
isCustomFactsOnly
public boolean isCustomFactsOnly()Whether builds pick only from the custom facts. Has no effect while there are no custom facts.- Returns:
- true to use only the custom facts
-
setCustomFactsOnly
@DataBoundSetter public void setCustomFactsOnly(boolean customFactsOnly) Sets whether builds pick only from the custom facts.- Parameters:
customFactsOnly- true to use only the custom facts
-
getCustomFactList
Gets the custom facts, one per non-blank line, trimmed.- Returns:
- the custom facts
-