Class Clone
java.lang.Object
org.jenkinsci.plugins.vsphere.VSphereBuildStep
org.jenkinsci.plugins.vsphere.builders.Clone
- All Implemented Interfaces:
ExtensionPoint,Describable<VSphereBuildStep>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jenkinsci.plugins.vsphere.VSphereBuildStep
VSphereBuildStep.VSphereBuildStepDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class org.jenkinsci.plugins.vsphere.VSphereBuildStep
sourceCloud, vsphere -
Constructor Summary
ConstructorsConstructorDescriptionClone(String sourceName, String clone, boolean linkedClone, String resourcePool, String cluster, String datastore, String folder, boolean powerOn, Integer timeoutInSeconds, String customizationSpec, Boolean useCurrentSnapshot, String namedSnapshot, Map<String, String> extraConfigParameters) -
Method Summary
Modifier and TypeMethodDescriptiongetClone()getHost()Canonical form, for pipeline/API/JCasC consumers.For the classic config UI textbox, and pipeline/JCasC callers that prefer a plain string.getIP()intbooleanbooleanbooleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidperform(Run<?, ?> run, FilePath filePath, Launcher launcher, TaskListener listener) voidvoidsetHostSelectionCandidates(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) Methods inherited from class org.jenkinsci.plugins.vsphere.VSphereBuildStep
all, allowDelete, getDescriptor, getSourceCloud, getVsphere, setSourceCloud, setVsphere
-
Constructor Details
-
Clone
@DataBoundConstructor public Clone(String sourceName, String clone, boolean linkedClone, String resourcePool, String cluster, String datastore, String folder, boolean powerOn, Integer timeoutInSeconds, String customizationSpec, Boolean useCurrentSnapshot, String namedSnapshot, Map<String, String> extraConfigParameters) throws VSphereException- Throws:
VSphereException
-
-
Method Details
-
getSourceName
-
getClone
-
isLinkedClone
public boolean isLinkedClone() -
getNamedSnapshot
-
isUseCurrentSnapshot
public boolean isUseCurrentSnapshot() -
getCluster
-
getResourcePool
-
getDatastore
-
getFolder
-
getCustomizationSpec
-
isPowerOn
public boolean isPowerOn() -
getTimeoutInSeconds
public int getTimeoutInSeconds() -
getExtraConfigParameters
-
getHost
-
setHost
-
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
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath filePath, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin classVSphereBuildStep- Throws:
InterruptedExceptionIOException
-
getIP
- Overrides:
getIPin classVSphereBuildStep
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws AbortException- Specified by:
performin classVSphereBuildStep- Throws:
AbortException
-