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
Fields -
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) voidsetVsphere(VSphere vsphere)
-
Field Details
-
vsphere
-
-
Constructor Details
-
VSphereBuildStep
public VSphereBuildStep()
-
-
Method Details
-
getVsphere
-
setVsphere
-
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()
-