Class RenameSnapshot
java.lang.Object
org.jenkinsci.plugins.vsphere.VSphereBuildStep
org.jenkinsci.plugins.vsphere.builders.RenameSnapshot
- 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
ConstructorsConstructorDescriptionRenameSnapshot(String vm, String oldName, String newName, String newDescription) -
Method Summary
Modifier and TypeMethodDescriptiongetProjectAction(AbstractProject<?, ?> abstractProject) Collection<? extends Action> getProjectActions(AbstractProject<?, ?> abstractProject) getVm()booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidperform(Run<?, ?> run, FilePath filePath, Launcher launcher, TaskListener listener) booleanprebuild(AbstractBuild<?, ?> abstractBuild, BuildListener buildListener) booleanrenameSnapshot(Run<?, ?> run, Launcher launcher, TaskListener listener) 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
-
RenameSnapshot
@DataBoundConstructor public RenameSnapshot(String vm, String oldName, String newName, String newDescription) throws VSphereException - Throws:
VSphereException
-
-
Method Details
-
getVm
-
getOldName
-
getNewName
-
getNewDescription
-
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
-
renameSnapshot
public boolean renameSnapshot(Run<?, ?> run, Launcher launcher, TaskListener listener) throws VSphereException- Throws:
VSphereException
-