Class ClusterConfig

java.lang.Object
hudson.model.AbstractDescribableImpl<ClusterConfig>
com.openshift.jenkins.plugins.ClusterConfig
All Implemented Interfaces:
Describable<ClusterConfig>, Serializable

public class ClusterConfig extends AbstractDescribableImpl<ClusterConfig> implements Serializable
See Also:
  • Constructor Details

    • ClusterConfig

      @DataBoundConstructor public ClusterConfig(String name)
  • Method Details

    • getName

      public String getName()
    • getServerUrl

      public String getServerUrl()
    • setServerUrl

      @DataBoundSetter public void setServerUrl(String serverUrl)
    • getServerCertificateAuthority

      public String getServerCertificateAuthority()
    • setServerCertificateAuthority

      @DataBoundSetter public void setServerCertificateAuthority(String serverCertificateAuthority)
    • isSkipTlsVerify

      public boolean isSkipTlsVerify()
    • setSkipTlsVerify

      @DataBoundSetter public void setSkipTlsVerify(boolean skipTLSVerify)
    • getDefaultProject

      public String getDefaultProject()
    • setDefaultProject

      @DataBoundSetter public void setDefaultProject(String defaultProject)
    • getCredentialsId

      public String getCredentialsId()
    • setCredentialsId

      @DataBoundSetter public void setCredentialsId(String credentialsId)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getHostClusterApiServerUrl

      public static String getHostClusterApiServerUrl()
      Returns:
      Returns a URL to contact the API server of the OpenShift cluster running this node or throws an Exception if it cannot be determined.
    • getHostClusterApiServerUrl

      public static String getHostClusterApiServerUrl(String defaultHost, String defaultPort)
      Takes in defaults, with assumption that the 'env' pipeline global var is better populated as pipelines evolve
      Parameters:
      defaultHost - the default host
      defaultPort - the default port
      Returns:
      Returns a URL to contact the API server of the OpenShift cluster running this node or throws an Exception if it cannot be determined.
    • doFillCredentialsIdItems

      public static ListBoxModel doFillCredentialsIdItems(String credentialsId)