Package com.parallels.jenkins
Class ProvisioningConfig
- All Implemented Interfaces:
Describable<ProvisioningConfig>,Serializable
- Direct Known Subclasses:
CatalogProvisioningConfig,CloneProvisioningConfig
public abstract class ProvisioningConfig
extends AbstractDescribableImpl<ProvisioningConfig>
implements Serializable
Abstract base for the two provisioning strategies supported by the plugin.
CloneProvisioningConfig— clone an existing VM by name. Available in HOST mode.CatalogProvisioningConfig— create a VM from a Parallels DevOps catalog entry. Available in both HOST and ORCHESTRATOR modes.
Implementations are rendered in the UI via
<f:dropdownDescriptorSelector> in the AgentTemplate config
jelly, which automatically shows each implementation's own jelly form without
any inline JavaScript. Incompatible combinations (e.g. Clone in Orchestrator
mode) are rejected at save time by PrlDevopsCloud.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanReturnstruewhen the fields required for this mode are configured.abstract PrlDevopsPlannedNodeprovision(String cloudName, AgentTemplate template, Label label, PrlDevopsApiClient apiClient, Duration timeout, Duration pollInterval, ExecutorService executor) Provisions one VM for the given label and returns the planned Jenkins node.Methods 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
-
ProvisioningConfig
public ProvisioningConfig()
-
-
Method Details
-
canProvision
public abstract boolean canProvision()Returnstruewhen the fields required for this mode are configured. -
provision
public abstract PrlDevopsPlannedNode provision(String cloudName, AgentTemplate template, Label label, PrlDevopsApiClient apiClient, Duration timeout, Duration pollInterval, ExecutorService executor) throws PrlApiException Provisions one VM for the given label and returns the planned Jenkins node.- Throws:
PrlApiException
-