Class PowerOff
java.lang.Object
org.jenkinsci.plugins.vsphere.VSphereBuildStep
org.jenkinsci.plugins.vsphere.builders.PowerOff
- 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
vsphereFields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetProjectAction(AbstractProject<?, ?> abstractProject) Collection<? extends Action> getProjectActions(AbstractProject<?, ?> abstractProject) getVm()booleanbooleanbooleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidperform(Run<?, ?> run, FilePath filePath, Launcher launcher, TaskListener listener) booleanprebuild(AbstractBuild<?, ?> abstractBuild, BuildListener buildListener) voidsetGracefulShutdownTimeout(int gracefulShutdownTimeout) Methods inherited from class org.jenkinsci.plugins.vsphere.VSphereBuildStep
all, allowDelete, getDescriptor, getIP, getVsphere, 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
-
PowerOff
@DataBoundConstructor public PowerOff(String vm, boolean evenIfSuspended, boolean shutdownGracefully, boolean ignoreIfNotExists) throws VSphereException - Throws:
VSphereException
-
-
Method Details
-
setGracefulShutdownTimeout
@DataBoundSetter public void setGracefulShutdownTimeout(int gracefulShutdownTimeout) -
isIgnoreIfNotExists
public boolean isIgnoreIfNotExists() -
isEvenIfSuspended
public boolean isEvenIfSuspended() -
isShutdownGracefully
public boolean isShutdownGracefully() -
getGracefulShutdownTimeout
public int getGracefulShutdownTimeout() -
getVm
-
prebuild
-
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
-
perform
- Specified by:
performin interfaceBuildStep- Specified by:
performin classVSphereBuildStep
-
getProjectAction
- Specified by:
getProjectActionin interfaceBuildStep
-
getProjectActions
- Specified by:
getProjectActionsin interfaceBuildStep
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorServicein interfaceBuildStep
-