java.lang.Object
org.jenkinsci.plugins.vsphere.VSphereBuildStep
org.jenkinsci.plugins.vsphere.builders.Clone
All Implemented Interfaces:
ExtensionPoint, Describable<VSphereBuildStep>

public class Clone extends VSphereBuildStep
  • Constructor Details

  • Method Details

    • getSourceName

      public String getSourceName()
    • getClone

      public String getClone()
    • isLinkedClone

      public boolean isLinkedClone()
    • getNamedSnapshot

      public String getNamedSnapshot()
    • isUseCurrentSnapshot

      public boolean isUseCurrentSnapshot()
    • getCluster

      public String getCluster()
    • getResourcePool

      public String getResourcePool()
    • getDatastore

      public String getDatastore()
    • getFolder

      public String getFolder()
    • getCustomizationSpec

      public String getCustomizationSpec()
    • isPowerOn

      public boolean isPowerOn()
    • getTimeoutInSeconds

      public int getTimeoutInSeconds()
    • getExtraConfigParameters

      public Map<String,String> getExtraConfigParameters()
    • getHost

      public String getHost()
    • setHost

      @DataBoundSetter public void setHost(String host)
    • getHostSelectionMode

      public String getHostSelectionMode()
    • setHostSelectionMode

      @DataBoundSetter public void setHostSelectionMode(String hostSelectionMode)
    • getHostSelectionCandidates

      public Set<String> getHostSelectionCandidates()
      Canonical form, for pipeline/API/JCasC consumers.
    • setHostSelectionCandidates

      @DataBoundSetter public void setHostSelectionCandidates(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. See setHostSelectionCandidatesAsString(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 single Object-typed (or overloaded) setter is not reliably usable from YAML, even though pipeline's looser binding tolerates it.
    • getHostSelectionCandidatesAsString

      public String 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" (see vSphereCloud.getHostSelectionCandidates()); a single comma explicitly overrides to "no restriction at this call site" - see VSphereHostSelection.toAllowListString(java.util.Set<java.lang.String>).
    • setHostSelectionCandidatesAsString

      @DataBoundSetter public void setHostSelectionCandidatesAsString(String hostSelectionCandidatesCsv)
    • perform

      public void perform(@NonNull Run<?,?> run, @NonNull FilePath filePath, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException
      Specified by:
      perform in class VSphereBuildStep
      Throws:
      InterruptedException
      IOException
    • getIP

      public String getIP()
      Overrides:
      getIP in class VSphereBuildStep
    • perform

      public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener) throws AbortException
      Specified by:
      perform in class VSphereBuildStep
      Throws:
      AbortException