Class Deploy
java.lang.Object
org.jenkinsci.plugins.vsphere.VSphereBuildStep
org.jenkinsci.plugins.vsphere.builders.Deploy
- All Implemented Interfaces:
ExtensionPoint,Describable<VSphereBuildStep>,BuildStep,SimpleBuildStep
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.jenkinsci.plugins.vsphere.VSphereBuildStep
VSphereBuildStep.VSphereBuildStepDescriptorNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudsonNested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory -
Field Summary
Fields inherited from class org.jenkinsci.plugins.vsphere.VSphereBuildStep
sourceCloud, vsphereFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
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()getProjectAction(AbstractProject<?, ?> abstractProject) Collection<? extends Action> getProjectActions(AbstractProject<?, ?> abstractProject) intbooleanbooleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidperform(Run<?, ?> run, FilePath filePath, Launcher launcher, TaskListener listener) booleanprebuild(AbstractBuild<?, ?> abstractBuild, BuildListener buildListener) 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, setVsphereMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
Constructor Details
-
Deploy
@DataBoundConstructor public Deploy(String template, String clone, boolean linkedClone, String resourcePool, String cluster, String datastore, String folder, String customizationSpec, Integer timeoutInSeconds, boolean powerOn) throws VSphereException - Throws:
VSphereException
-
-
Method Details
-
getTemplate
-
getClone
-
isLinkedClone
public boolean isLinkedClone() -
getCluster
-
getResourcePool
-
getDatastore
-
getFolder
-
getCustomizationSpec
-
isPowerOn
public boolean isPowerOn() -
getTimeoutInSeconds
public int getTimeoutInSeconds() -
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
-
getIP
- Overrides:
getIPin classVSphereBuildStep
-
perform
public void perform(@NonNull Run<?, ?> run, @NonNull FilePath filePath, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceSimpleBuildStep- Specified by:
performin classVSphereBuildStep- Throws:
InterruptedExceptionIOException
-
prebuild
-
perform
- Specified by:
performin interfaceBuildStep- Specified by:
performin classVSphereBuildStep
-
getProjectAction
- Specified by:
getProjectActionin interfaceBuildStep
-
getProjectActions
- Specified by:
getProjectActionsin interfaceBuildStep
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-