Class KubernetesSlave.Builder
java.lang.Object
org.csanchez.jenkins.plugins.kubernetes.KubernetesSlave.Builder
- Enclosing class:
- KubernetesSlave
Builds a
KubernetesSlave instance.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the resultingKubernetesSlaveinstance.cloud(KubernetesCloud cloud) computerLauncher(ComputerLauncher computerLauncher) nodeDescription(String nodeDescription) podTemplate(PodTemplate podTemplate) retentionStrategy(RetentionStrategy retentionStrategy)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
- Parameters:
name- The name of the futureKubernetesSlave- Returns:
- the current instance for method chaining
-
nodeDescription
- Parameters:
nodeDescription- The node description of the futureKubernetesSlave- Returns:
- the current instance for method chaining
-
podTemplate
- Parameters:
podTemplate- The pod template the futureKubernetesSlavehas been created from- Returns:
- the current instance for method chaining
-
cloud
- Parameters:
cloud- The cloud that is provisioning theKubernetesSlaveinstance.- Returns:
- the current instance for method chaining
-
label
- Parameters:
label- The label theKubernetesSlavehas.- Returns:
- the current instance for method chaining
-
computerLauncher
- Parameters:
computerLauncher- The computer launcher to use to launch theKubernetesSlaveinstance.- Returns:
- the current instance for method chaining
-
retentionStrategy
- Parameters:
retentionStrategy- The retention strategy to use for theKubernetesSlaveinstance.- Returns:
- the current instance for method chaining
-
build
Builds the resultingKubernetesSlaveinstance.- Returns:
- an initialized
KubernetesSlaveinstance. - Throws:
IOExceptionDescriptor.FormException
-