Class SetupConfig

All Implemented Interfaces:
ExtensionPoint, Describable<GlobalConfiguration>, Saveable, Loadable, OnMaster

@Extension public class SetupConfig extends GlobalConfiguration
Keeps track of the configuration of slave_setup execution.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • SetupConfig

      public SetupConfig()
  • Method Details

    • getSetupConfigItems

      public List<SetupConfigItem> getSetupConfigItems()
    • setSetupConfigItems

      public void setSetupConfigItems(List<SetupConfigItem> setupConfigItems)
    • configure

      public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException
      GlobalConfiguration override. Begin this SetupConfig initialization binding configJson, seting up Listener and performing this config execution on all activeSlaves.
      Overrides:
      configure in class GlobalConfiguration
      Parameters:
      req - StaplerRequest2 from jenkins classes
      json - JSONObject from jenkins classes
      Returns:
      Boolean if the config setup for all the slaves went correctly if true.
      Throws:
      Descriptor.FormException
    • get

      public static SetupConfig get()
      Get this SetupConfig class
      Returns:
      class SetupConfig
    • doAutoCompleteAssignedLabelString

      public AutoCompletionCandidates doAutoCompleteAssignedLabelString(@QueryParameter String value)
      Autocompletion string for jelly to autocomplete node label.
      Parameters:
      value - String to be compared and autocompleted.
      Returns:
      AutoCompletionCandidates for the given value checking all Jenkins instance labels.
    • doCheckFilesDir

      public FormValidation doCheckFilesDir(@QueryParameter String value)
    • doCheckAssignedLabelString

      public FormValidation doCheckAssignedLabelString(@QueryParameter String value)