Class RancherGlobalConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.ranchermanager.RancherGlobalConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
@Extension
@Symbol("rancherManager")
public class RancherGlobalConfiguration
extends GlobalConfiguration
Global Rancher Manager connection settings (Manage Jenkins → System → Rancher Manager).
-
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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields 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) doCheckConnectTimeoutMs(String value) doCheckRancherUrl(String value) doCheckReadTimeoutMs(String value) doFillCredentialsIdItems(String credentialsId) static RancherGlobalConfigurationget()intgetName()intbooleanWhether URL and API token credentials are set (build/step readiness).voidsetConnectTimeoutMs(int connectTimeoutMs) voidsetCredentialsId(String credentialsId) voidvoidsetRancherUrl(String rancherUrl) voidsetReadTimeoutMs(int readTimeoutMs) 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, 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
-
Field Details
-
DEFAULT_CONNECT_TIMEOUT_MS
public static final int DEFAULT_CONNECT_TIMEOUT_MS- See Also:
-
DEFAULT_READ_TIMEOUT_MS
public static final int DEFAULT_READ_TIMEOUT_MS- See Also:
-
-
Constructor Details
-
RancherGlobalConfiguration
public RancherGlobalConfiguration()
-
-
Method Details
-
get
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<GlobalConfiguration>
-
getName
-
setName
-
getRancherUrl
-
setRancherUrl
-
getCredentialsId
-
setCredentialsId
-
getConnectTimeoutMs
public int getConnectTimeoutMs() -
setConnectTimeoutMs
@DataBoundSetter public void setConnectTimeoutMs(int connectTimeoutMs) -
getReadTimeoutMs
public int getReadTimeoutMs() -
setReadTimeoutMs
@DataBoundSetter public void setReadTimeoutMs(int readTimeoutMs) -
isConfigured
public boolean isConfigured()Whether URL and API token credentials are set (build/step readiness). Save does not call Rancher; runtime preflight probes during builds. -
configure
public boolean configure(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject json) throws Descriptor.FormException - Overrides:
configurein classGlobalConfiguration- Throws:
Descriptor.FormException
-
doCheckRancherUrl
-
doCheckConnectTimeoutMs
-
doCheckReadTimeoutMs
-
doFillCredentialsIdItems
-