Package com.veertu.plugin.anka
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 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 TypeMethodDescriptionLoads node groups for provisioning resolution.booleangetGroup()Returns the configured node group identity (name or UUID) without side effects.intintbooleangetLabel()intgetMode()List<? extends NodeProperty<?>>intintintgetTag()intgetVcpu()intgetVram()booleanbooleanbooleanResolves the configured group to a Controller group UUID forstartVM.voidsetCloudName(String cloudName) voidsetCredentialsId(String credentialsId) voidsetDeleteLatest(Boolean deleteLatest) voidsetDescription(String description) voidsetDontAppendTimestamp(Boolean dontAppendTimestamp) voidsetEnvironments(List<AnkaCloudSlaveTemplate.EnvironmentEntry> environments) voidsetExtraArgs(String extraArgs) voidStores the configured node group identity as-is (name or UUID).voidsetIdleMinutes(int idleMinutes) voidsetInstanceCapacity(int instanceCapacity) voidsetJavaArgs(String javaArgs) voidsetJavaPath(String javaPath) 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
-
javaPath
-
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
Returns the configured node group identity (name or UUID) without side effects. Does not call the Controller API and never clears or rewrites stored config. -
setGroup
Stores the configured node group identity as-is (name or UUID). Does not convert names to UUIDs; resolution happens at VM start. -
resolveGroupIdForStart
Resolves the configured group to a Controller group UUID forstartVM.- Returns:
- group UUID, or
nullwhen no group is configured (all nodes) - Throws:
AnkaMgmtException- if a group is configured but the API fails or the group is not found
-
fetchNodeGroupsForResolve
Loads node groups for provisioning resolution. Propagates API failures (never treats them as empty).- Throws:
AnkaMgmtException
-
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
-
getJavaPath
-
setJavaPath
-
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
-