Package org.jenkinsci.plugins
Class vSphereCloudSlaveTemplate
java.lang.Object
org.jenkinsci.plugins.vSphereCloudSlaveTemplate
- All Implemented Interfaces:
Describable<vSphereCloudSlaveTemplate>
public class vSphereCloudSlaveTemplate
extends Object
implements Describable<vSphereCloudSlaveTemplate>
- Author:
- ksmith
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.cloudbees.plugins.credentials.domains.SchemeRequirementprotected static final com.cloudbees.plugins.credentials.domains.SchemeRequirementprotected vSphereCloud -
Constructor Summary
ConstructorsConstructorDescriptionvSphereCloudSlaveTemplate(String cloneNamePrefix, String masterImageName, Boolean useSnapshot, String snapshotName, boolean linkedClone, String cluster, String resourcePool, String datastore, String folder, String customizationSpec, String templateDescription, int templateInstanceCap, int numberOfExecutors, String remoteFS, String labelString, Node.Mode mode, boolean forceVMLaunch, boolean waitForVMTools, int launchDelay, int limitedRunCount, boolean saveFailure, String targetResourcePool, String targetHost, String credentialsId, ComputerLauncher launcher, RetentionStrategy<?> retentionStrategy, List<? extends NodeProperty<?>> nodeProperties, List<? extends VSphereGuestInfoProperty> guestInfoProperties) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.booleanList<? extends VSphereGuestInfoProperty> Canonical form, for pipeline/API/JCasC consumers.For the classic config UI textbox, and pipeline/JCasC callers that prefer a plain string.intintbooleangetMode()List<? extends NodeProperty<?>> intbooleanintbooleanbooleanprovision(String cloneName, TaskListener listener) protected ObjectvoidsetHostSelectionCandidates(Collection<String> hostSelectionCandidates) Takes a flat list of individual host names - the natural shape for a pipeline or JCasC YAML caller that already has one.voidsetHostSelectionCandidatesAsString(String hostSelectionCandidatesCsv) voidsetHostSelectionMode(String hostSelectionMode)
-
Field Details
-
HTTP_SCHEME
protected static final com.cloudbees.plugins.credentials.domains.SchemeRequirement HTTP_SCHEME -
HTTPS_SCHEME
protected static final com.cloudbees.plugins.credentials.domains.SchemeRequirement HTTPS_SCHEME -
parent
-
-
Constructor Details
-
vSphereCloudSlaveTemplate
@DataBoundConstructor public vSphereCloudSlaveTemplate(String cloneNamePrefix, String masterImageName, Boolean useSnapshot, String snapshotName, boolean linkedClone, String cluster, String resourcePool, String datastore, String folder, String customizationSpec, String templateDescription, int templateInstanceCap, int numberOfExecutors, String remoteFS, String labelString, Node.Mode mode, boolean forceVMLaunch, boolean waitForVMTools, int launchDelay, int limitedRunCount, boolean saveFailure, String targetResourcePool, String targetHost, String credentialsId, ComputerLauncher launcher, RetentionStrategy<?> retentionStrategy, List<? extends NodeProperty<?>> nodeProperties, List<? extends VSphereGuestInfoProperty> guestInfoProperties)
-
-
Method Details
-
getCloneNamePrefix
-
getMasterImageName
-
getUseSnapshot
public boolean getUseSnapshot() -
getSnapshotName
-
getLinkedClone
public boolean getLinkedClone() -
getCluster
-
getResourcePool
-
getDatastore
-
getFolder
-
getCustomizationSpec
-
getTemplateDescription
-
getTemplateInstanceCap
public int getTemplateInstanceCap() -
getNumberOfExecutors
public int getNumberOfExecutors() -
getRemoteFS
-
getLabelString
-
getMode
-
getForceVMLaunch
public boolean getForceVMLaunch() -
getWaitForVMTools
public boolean getWaitForVMTools() -
getLaunchDelay
public int getLaunchDelay() -
getLimitedRunCount
public int getLimitedRunCount() -
getSaveFailure
public boolean getSaveFailure() -
getTargetResourcePool
-
getTargetHost
-
getHostSelectionMode
-
setHostSelectionMode
-
getHostSelectionCandidates
Canonical form, for pipeline/API/JCasC consumers. -
setHostSelectionCandidates
Takes a flat list of individual host names - the natural shape for a pipeline or JCasC YAML caller that already has one. SeesetHostSelectionCandidatesAsString(java.lang.String)for the comma-separated-string equivalent (used by the classic UI textbox). Both are kept as separate, concretely-typed properties rather than one that accepts either shape: Jenkins' JCasC introspection resolves exactly one configurator per property type, so a singleObject-typed (or overloaded) setter is not reliably usable from YAML, even though pipeline's looser binding tolerates it. -
getHostSelectionCandidatesAsString
For the classic config UI textbox, and pipeline/JCasC callers that prefer a plain string. Blank means "inherit the cloud's default candidate list" (seevSphereCloud.getHostSelectionCandidates()); a single comma explicitly overrides to "no restriction at this call site" - seeVSphereHostSelection.toAllowListString(java.util.Set<java.lang.String>). -
setHostSelectionCandidatesAsString
-
getCredentialsId
Deprecated.credentials are now in thegetLauncher()property.Gets the old (deprecated) credentialsId field.- Returns:
- the old, deprecated, credentialsId field.
-
getNodeProperties
-
getGuestInfoProperties
-
getLabelSet
-
getParent
-
getLauncher
-
getRetentionStrategy
-
readResolve
-
provision
public vSphereCloudProvisionedSlave provision(String cloneName, TaskListener listener) throws VSphereException, Descriptor.FormException, IOException, InterruptedException -
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<vSphereCloudSlaveTemplate>
-
getLauncher()property.