Package com.openshift.jenkins.plugins
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ClusterConfig.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description ClusterConfig(String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListBoxModel
doFillCredentialsIdItems(String credentialsId)
String
getCredentialsId()
String
getDefaultProject()
static String
getHostClusterApiServerUrl()
static String
getHostClusterApiServerUrl(String defaultHost, String defaultPort)
Takes in defaults, with assumption that the 'env' pipeline global var is better populated as pipelines evolveString
getName()
String
getServerCertificateAuthority()
String
getServerUrl()
boolean
isSkipTlsVerify()
void
setCredentialsId(String credentialsId)
void
setDefaultProject(String defaultProject)
void
setServerCertificateAuthority(String serverCertificateAuthority)
void
setServerUrl(String serverUrl)
void
setSkipTlsVerify(boolean skipTLSVerify)
String
toString()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Constructor Detail
-
ClusterConfig
@DataBoundConstructor public ClusterConfig(String name)
-
-
Method Detail
-
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)
-
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 hostdefaultPort
- 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)
-
-