Package com.parallels.jenkins
Class AgentTemplate
- All Implemented Interfaces:
Describable<AgentTemplate>,Serializable
Per-VM-type configuration. One
AgentTemplate maps to one VM type in
Parallels DevOps Service. The available provisioning strategies are rendered via
<f:dropdownDescriptorSelector>; incompatible combinations (e.g. Clone
in Orchestrator mode) are rejected at save time by
PrlDevopsCloud.DescriptorImpl.newInstance(org.kohsuke.stapler.StaplerRequest2, net.sf.json.JSONObject).- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintintbooleanReturnstruewhen this template's label set satisfies the given JenkinsLabelexpression.provision(String cloudName, Label label, PrlDevopsApiClient apiClient, Duration timeout, Duration pollInterval, ExecutorService executor) protected ObjectXStream deserialization hook.voidsetAgentConnectionTimeoutSec(int agentConnectionTimeoutSec) voidsetAgentWorkspaceDir(String agentWorkspaceDir) voidsetJavaPath(String javaPath) voidsetJvmOptions(String jvmOptions) voidsetNumExecutors(int numExecutors) voidsetProvisioningConfig(ProvisioningConfig provisioningConfig) voidsetVmReadyPollIntervalSeconds(int vmReadyPollIntervalSeconds) voidsetVmReadyTimeoutSeconds(int vmReadyTimeoutSeconds) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Describable
getDescriptor
-
Constructor Details
-
AgentTemplate
-
-
Method Details
-
getTemplateLabel
-
getVmUser
-
getJavaPath
-
getJvmOptions
-
getAgentConnectionTimeoutSec
public int getAgentConnectionTimeoutSec() -
getAgentWorkspaceDir
-
getNumExecutors
public int getNumExecutors() -
getVmReadyTimeoutSeconds
public int getVmReadyTimeoutSeconds() -
getVmReadyPollIntervalSeconds
public int getVmReadyPollIntervalSeconds() -
getProvisioningConfig
-
canProvision
public boolean canProvision() -
provision
public PrlDevopsPlannedNode provision(String cloudName, Label label, PrlDevopsApiClient apiClient, Duration timeout, Duration pollInterval, ExecutorService executor) throws PrlApiException - Throws:
PrlApiException
-
readResolve
XStream deserialization hook. Migrates old configs that storedbaseVmNamedirectly on this class (before theProvisioningConfigrefactor) into aCloneProvisioningConfig. Also guards againstnullfor configs that predate both fields. -
getBaseVmName
-
getArchitecture
-
getCatalogId
-
getCatalogVersion
-
getCatalogUrl
-
getCatalogCredentialsId
-
setVmUser
-
setAgentConnectionTimeoutSec
@DataBoundSetter public void setAgentConnectionTimeoutSec(int agentConnectionTimeoutSec) -
setJavaPath
-
setJvmOptions
-
setAgentWorkspaceDir
-
setNumExecutors
@DataBoundSetter public void setNumExecutors(int numExecutors) -
setVmReadyTimeoutSeconds
@DataBoundSetter public void setVmReadyTimeoutSeconds(int vmReadyTimeoutSeconds) -
setVmReadyPollIntervalSeconds
@DataBoundSetter public void setVmReadyPollIntervalSeconds(int vmReadyPollIntervalSeconds) -
setProvisioningConfig
-
matches
Returnstruewhen this template's label set satisfies the given JenkinsLabelexpression.
-