Class 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:).
  • Constructor Details

    • ChuckNorrisConfiguration

      public ChuckNorrisConfiguration()
  • Method Details

    • get

      public static ChuckNorrisConfiguration get()
      Gets the configuration.
      Returns:
      the configuration
    • getCategory

      public GlobalConfigurationCategory getCategory()
      Shows this configuration on the Manage Jenkins > Appearance page, since it only changes what builds show.
      Overrides:
      getCategory in class Descriptor<GlobalConfiguration>
      Returns:
      the appearance category
    • getCustomFacts

      public String getCustomFacts()
      Gets the custom facts, one per line.
      Returns:
      the custom facts, or null if there are none
    • setCustomFacts

      @DataBoundSetter public void setCustomFacts(String customFacts)
      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

      public List<String> getCustomFactList()
      Gets the custom facts, one per non-blank line, trimmed.
      Returns:
      the custom facts