Package org.jenkinsci.plugins
Class vSphereCloudSlaveTemplate
java.lang.Object
org.jenkinsci.plugins.vSphereCloudSlaveTemplate
- All Implemented Interfaces:
Describable<vSphereCloudSlaveTemplate>
public class vSphereCloudSlaveTemplate
extends Object
implements Describable<vSphereCloudSlaveTemplate>
- Author:
- ksmith
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.cloudbees.plugins.credentials.domains.SchemeRequirementprotected static final com.cloudbees.plugins.credentials.domains.SchemeRequirementprotected vSphereCloud -
Constructor Summary
ConstructorsConstructorDescriptionvSphereCloudSlaveTemplate(String cloneNamePrefix, String masterImageName, Boolean useSnapshot, String snapshotName, boolean linkedClone, String cluster, String resourcePool, String datastore, String folder, String customizationSpec, String templateDescription, int templateInstanceCap, int numberOfExecutors, String remoteFS, String labelString, Node.Mode mode, boolean forceVMLaunch, boolean waitForVMTools, int launchDelay, int limitedRunCount, boolean saveFailure, String targetResourcePool, String targetHost, String credentialsId, ComputerLauncher launcher, RetentionStrategy<?> retentionStrategy, List<? extends NodeProperty<?>> nodeProperties, List<? extends VSphereGuestInfoProperty> guestInfoProperties) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.booleanList<? extends VSphereGuestInfoProperty> intintbooleangetMode()List<? extends NodeProperty<?>> intbooleanintbooleanbooleanprovision(String cloneName, TaskListener listener) protected Object
-
Field Details
-
HTTP_SCHEME
protected static final com.cloudbees.plugins.credentials.domains.SchemeRequirement HTTP_SCHEME -
HTTPS_SCHEME
protected static final com.cloudbees.plugins.credentials.domains.SchemeRequirement HTTPS_SCHEME -
parent
-
-
Constructor Details
-
vSphereCloudSlaveTemplate
@DataBoundConstructor public vSphereCloudSlaveTemplate(String cloneNamePrefix, String masterImageName, Boolean useSnapshot, String snapshotName, boolean linkedClone, String cluster, String resourcePool, String datastore, String folder, String customizationSpec, String templateDescription, int templateInstanceCap, int numberOfExecutors, String remoteFS, String labelString, Node.Mode mode, boolean forceVMLaunch, boolean waitForVMTools, int launchDelay, int limitedRunCount, boolean saveFailure, String targetResourcePool, String targetHost, String credentialsId, ComputerLauncher launcher, RetentionStrategy<?> retentionStrategy, List<? extends NodeProperty<?>> nodeProperties, List<? extends VSphereGuestInfoProperty> guestInfoProperties)
-
-
Method Details
-
getCloneNamePrefix
-
getMasterImageName
-
getUseSnapshot
public boolean getUseSnapshot() -
getSnapshotName
-
getLinkedClone
public boolean getLinkedClone() -
getCluster
-
getResourcePool
-
getDatastore
-
getFolder
-
getCustomizationSpec
-
getTemplateDescription
-
getTemplateInstanceCap
public int getTemplateInstanceCap() -
getNumberOfExecutors
public int getNumberOfExecutors() -
getRemoteFS
-
getLabelString
-
getMode
-
getForceVMLaunch
public boolean getForceVMLaunch() -
getWaitForVMTools
public boolean getWaitForVMTools() -
getLaunchDelay
public int getLaunchDelay() -
getLimitedRunCount
public int getLimitedRunCount() -
getSaveFailure
public boolean getSaveFailure() -
getTargetResourcePool
-
getTargetHost
-
getCredentialsId
Deprecated.credentials are now in thegetLauncher()property.Gets the old (deprecated) credentialsId field.- Returns:
- the old, deprecated, credentialsId field.
-
getNodeProperties
-
getGuestInfoProperties
-
getLabelSet
-
getParent
-
getLauncher
-
getRetentionStrategy
-
readResolve
-
provision
public vSphereCloudProvisionedSlave provision(String cloneName, TaskListener listener) throws VSphereException, Descriptor.FormException, IOException, InterruptedException -
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<vSphereCloudSlaveTemplate>
-
getLauncher()property.