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).
  • 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

      public static RancherGlobalConfiguration get()
    • getDisplayName

      @NonNull public String getDisplayName()
      Overrides:
      getDisplayName in class Descriptor<GlobalConfiguration>
    • getName

      public String getName()
    • setName

      @DataBoundSetter public void setName(String name)
    • getRancherUrl

      public String getRancherUrl()
    • setRancherUrl

      @DataBoundSetter public void setRancherUrl(String rancherUrl)
    • getCredentialsId

      public String getCredentialsId()
    • setCredentialsId

      @DataBoundSetter public void setCredentialsId(String credentialsId)
    • 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:
      configure in class GlobalConfiguration
      Throws:
      Descriptor.FormException
    • doCheckRancherUrl

      @POST public FormValidation doCheckRancherUrl(@QueryParameter String value)
    • doCheckConnectTimeoutMs

      @POST public FormValidation doCheckConnectTimeoutMs(@QueryParameter String value)
    • doCheckReadTimeoutMs

      @POST public FormValidation doCheckReadTimeoutMs(@QueryParameter String value)
    • doFillCredentialsIdItems

      @POST public ListBoxModel doFillCredentialsIdItems(@QueryParameter String credentialsId)