Class SetupConfig
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
org.jenkinsci.plugins.slave_setup.SetupConfig
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
Keeps track of the configuration of slave_setup execution.
- Author:
- Kohsuke Kawaguchi
-
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 TypeMethodDescriptionbooleanconfigure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) GlobalConfiguration override.Autocompletion string for jelly to autocomplete node label.doCheckAssignedLabelString(String value) doCheckFilesDir(String value) static SetupConfigget()Get this SetupConfig classvoidsetSetupConfigItems(List<SetupConfigItem> setupConfigItems) Methods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, 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
-
SetupConfig
public SetupConfig()
-
-
Method Details
-
getSetupConfigItems
-
setSetupConfigItems
-
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:
configurein classGlobalConfiguration- Parameters:
req- StaplerRequest2 from jenkins classesjson- JSONObject from jenkins classes- Returns:
- Boolean if the config setup for all the slaves went correctly if true.
- Throws:
Descriptor.FormException
-
get
Get this SetupConfig class- Returns:
- class SetupConfig
-
doAutoCompleteAssignedLabelString
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
-
doCheckAssignedLabelString
-