Package org.jenkinsci.plugins.vsphere
Class VSphereBuildStep
java.lang.Object
org.jenkinsci.plugins.vsphere.VSphereBuildStep
- All Implemented Interfaces:
ExtensionPoint,Describable<VSphereBuildStep>
- Direct Known Subclasses:
Clone,ConvertToTemplate,ConvertToVm,Delete,DeleteSnapshot,Deploy,ExposeGuestInfo,PowerOff,PowerOn,Reconfigure,Rename,RenameSnapshot,RevertToSnapshot,SuspendVm,TakeSnapshot
public abstract class VSphereBuildStep
extends Object
implements Describable<VSphereBuildStep>, ExtensionPoint
Define a base class for all vSphere build steps. All vSphere build steps should extend
this class, as it contains server information required by all.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected vSphereCloudThevSphereCloudthis step is currently running against, set by whatever resolvesvspherefor this run (currently onlyVSphereBuildStepContainer).protected VSphere -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall()static booleangetIP()abstract booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) abstract voidperform(Run<?, ?> run, FilePath filePath, Launcher launcher, TaskListener listener) voidsetSourceCloud(vSphereCloud sourceCloud) voidsetVsphere(VSphere vsphere)
-
Field Details
-
vsphere
-
sourceCloud
ThevSphereCloudthis step is currently running against, set by whatever resolvesvspherefor this run (currently onlyVSphereBuildStepContainer). Used to fall back to cloud-level defaults (e.g.hostSelectionMode) for fields a subclass leaves unset. May be null if a caller never sets it (e.g. a build step invoked directly, bypassing the container), in which case there is simply no cloud-level default to fall back to.
-
-
Constructor Details
-
VSphereBuildStep
public VSphereBuildStep()
-
-
Method Details
-
getVsphere
-
setVsphere
-
getSourceCloud
-
setSourceCloud
-
getIP
-
all
public static DescriptorExtensionList<VSphereBuildStep,VSphereBuildStep.VSphereBuildStepDescriptor> all() -
perform
public abstract boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws Exception- Throws:
Exception
-
perform
public abstract void perform(@NonNull Run<?, ?> run, @NonNull FilePath filePath, @NonNull Launcher launcher, @NonNull TaskListener listener) throws InterruptedException, IOException- Throws:
InterruptedExceptionIOException
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<VSphereBuildStep>
-
allowDelete
public static boolean allowDelete()
-