Class AbstractSlaveTemplate
java.lang.Object
com.veertu.plugin.anka.AbstractSlaveTemplate
- Direct Known Subclasses:
AnkaCloudSlaveTemplate,DynamicSlaveProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected static final intprotected List<AnkaCloudSlaveTemplate.EnvironmentEntry> protected Stringprotected Stringstatic final com.cloudbees.plugins.credentials.domains.SchemeRequirementstatic final com.cloudbees.plugins.credentials.domains.SchemeRequirementprotected intprotected intprotected Stringprotected Stringprotected Stringprotected booleanprotected Stringprotected intprotected Stringprotected Stringprotected Node.Modeprotected Stringprotected intprotected intprotected Stringprotected RetentionStrategyprotected SaveImageParametersprotected intprotected Stringprotected Stringprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconvertGroupNameToUUID(String groupName) Converts a group name to its corresponding UUID by looking up the group in the Anka cloud.protected StringconvertUUIDToGroupName(String groupId) Converts a UUID to its corresponding group name by looking up the group in the Anka cloud.booleangetGroup()intintbooleangetLabel()intgetMode()List<? extends NodeProperty<?>> intintintgetTag()intgetVcpu()intgetVram()booleanbooleanbooleanprotected booleanChecks if a string is a valid UUID format.voidsetCloudName(String cloudName) voidsetCredentialsId(String credentialsId) voidsetDeleteLatest(Boolean deleteLatest) voidsetDescription(String description) voidsetDontAppendTimestamp(Boolean dontAppendTimestamp) voidsetEnvironments(List<AnkaCloudSlaveTemplate.EnvironmentEntry> environments) voidsetExtraArgs(String extraArgs) voidvoidsetIdleMinutes(int idleMinutes) voidsetInstanceCapacity(int instanceCapacity) voidsetJavaArgs(String javaArgs) voidsetJnlpJenkinsOverrideUrl(String jnlpJenkinsOverrideUrl) voidsetJnlpTunnel(String jnlpTunnel) voidsetKeepAliveOnError(boolean keepAliveOnError) voidvoidsetLabelString(String labelString) Deprecated.voidsetLaunchDelay(int launchDelay) voidsetLaunchMethod(String launchMethod) voidsetMasterVmId(String masterVmId) voidvoidsetNameTemplate(String nameTemplate) voidsetNumberOfExecutors(int numberOfExecutors) voidsetPriority(int priority) protected voidvoidsetPushTag(String tag) voidsetRemoteFS(String remoteFS) voidsetRetentionStrategy(RetentionStrategy retentionStrategy) voidsetSaveImage(Boolean saveImage) voidsetSSHPort(int SSHPort) voidsetSuspend(Boolean suspend) voidvoidsetTemplateDescription(String templateDescription) voidsetTemplateId(String templateId) voidsetVcpu(int vcpu) voidsetVram(int vram) voidprotected String
-
Field Details
-
HTTP_SCHEME
public static final com.cloudbees.plugins.credentials.domains.SchemeRequirement HTTP_SCHEME -
HTTPS_SCHEME
public static final com.cloudbees.plugins.credentials.domains.SchemeRequirement HTTPS_SCHEME -
DEFAULT_SCHEDULING_TIMEOUT
protected static final int DEFAULT_SCHEDULING_TIMEOUT- See Also:
-
masterVmId
-
tag
-
launchDelay
protected int launchDelay -
remoteFS
-
labelString
-
templateDescription
-
numberOfExecutors
protected int numberOfExecutors -
mode
-
credentialsId
-
group
-
extraArgs
-
launchMethod
-
keepAliveOnError
protected boolean keepAliveOnError -
SSHPort
protected int SSHPort -
environments
-
retentionStrategy
-
nameTemplate
-
javaArgs
-
jnlpJenkinsOverrideUrl
-
jnlpTunnel
-
priority
protected int priority -
vcpu
protected int vcpu -
vram
protected int vram -
saveImageParameters
-
cloudName
-
instanceCapacity
protected int instanceCapacity -
idleMinutes
protected int idleMinutes
-
-
Constructor Details
-
AbstractSlaveTemplate
public AbstractSlaveTemplate()
-
-
Method Details
-
getIdleMinutes
public int getIdleMinutes() -
setIdleMinutes
@DataBoundSetter public void setIdleMinutes(int idleMinutes) -
getInstanceCapacity
public int getInstanceCapacity() -
setInstanceCapacity
@DataBoundSetter public void setInstanceCapacity(int instanceCapacity) -
getCloudName
-
setCloudName
-
getDisplayName
-
getMasterVmId
-
setMasterVmId
-
getTag
-
setTag
-
getLaunchDelay
public int getLaunchDelay() -
setLaunchDelay
@DataBoundSetter public void setLaunchDelay(int launchDelay) -
getRemoteFS
-
setRemoteFS
-
getLabel
-
getLabelString
-
setLabel
-
setLabelString
Deprecated. -
getTemplateDescription
-
setTemplateDescription
-
getNumberOfExecutors
public int getNumberOfExecutors() -
setNumberOfExecutors
@DataBoundSetter public void setNumberOfExecutors(int numberOfExecutors) -
getMode
-
setMode
-
getCredentialsId
-
setCredentialsId
-
getGroup
-
setGroup
-
convertUUIDToGroupName
-
convertGroupNameToUUID
-
isUUID
Checks if a string is a valid UUID format.- Parameters:
uuid- The string to check- Returns:
- true if the string is a valid UUID format, false otherwise
-
getExtraArgs
-
setExtraArgs
-
getLaunchMethod
-
setLaunchMethod
-
isKeepAliveOnError
public boolean isKeepAliveOnError() -
getKeepAliveOnError
public boolean getKeepAliveOnError() -
setKeepAliveOnError
@DataBoundSetter public void setKeepAliveOnError(boolean keepAliveOnError) -
getSSHPort
public int getSSHPort() -
setSSHPort
@DataBoundSetter public void setSSHPort(int SSHPort) -
getEnvironments
-
setEnvironments
@DataBoundSetter public void setEnvironments(List<AnkaCloudSlaveTemplate.EnvironmentEntry> environments) -
getRetentionStrategy
-
setRetentionStrategy
-
getNameTemplate
-
setNameTemplate
-
getJavaArgs
-
setJavaArgs
-
getJnlpJenkinsOverrideUrl
-
setJnlpJenkinsOverrideUrl
-
getJnlpTunnel
-
setJnlpTunnel
-
getPriority
public int getPriority() -
setPriority
@DataBoundSetter public void setPriority(int priority) -
getVcpu
public int getVcpu() -
setVcpu
@DataBoundSetter public void setVcpu(int vcpu) -
getVram
public int getVram() -
setVram
@DataBoundSetter public void setVram(int vram) -
valOrNull
-
getSaveImageParameters
-
getSuspend
-
setSuspend
-
getTemplateId
-
setTemplateId
-
getSaveImage
-
setSaveImage
-
getPushTag
-
setPushTag
-
isAppendTimestamp
public boolean isAppendTimestamp() -
getDontAppendTimestamp
public boolean getDontAppendTimestamp() -
setDontAppendTimestamp
-
isDeleteLatest
public boolean isDeleteLatest() -
setDeleteLatest
-
getDescription
-
setDescription
-
getWaitForBuildToFinish
-
setWaitForBuildToFinish
-
getNodeProperties
-
setProperties
-