Class ExposeGuestInfo
java.lang.Object
org.jenkinsci.plugins.vsphere.VSphereBuildStep
org.jenkinsci.plugins.vsphere.builders.ExposeGuestInfo
- All Implemented Interfaces:
ExtensionPoint,Describable<VSphereBuildStep>,BuildStep,SimpleBuildStep
Expose guest info for the named VM as environmental variables.
Information on variables can be found here.
https://www.vmware.com/support/developer/converter-sdk/conv55_apireference/vim.vm.GuestInfo.html
-
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 TypeMethodDescriptionbooleanexposeInfo(Run<?, ?> run, Launcher launcher, TaskListener listener) getIP()getProjectAction(AbstractProject<?, ?> abstractProject) Collection<? extends Action> getProjectActions(AbstractProject<?, ?> abstractProject) getVars()getVm()booleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) voidperform(Run<?, ?> run, FilePath filePath, Launcher launcher, TaskListener listener) booleanprebuild(AbstractBuild<?, ?> abstractBuild, BuildListener buildListener) Methods inherited from class org.jenkinsci.plugins.vsphere.VSphereBuildStep
all, allowDelete, getDescriptor, 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
-
ExposeGuestInfo
@DataBoundConstructor public ExposeGuestInfo(String vm, String envVariablePrefix, Boolean waitForIp4) throws VSphereException - Throws:
VSphereException
-
-
Method Details
-
getVm
-
getEnvVariablePrefix
-
getIP
- Overrides:
getIPin classVSphereBuildStep
-
getVars
-
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
-
exposeInfo
- Throws:
Exception
-