Class JCloudsSlaveTemplate
java.lang.Object
jenkins.plugins.openstack.compute.JCloudsSlaveTemplate
- All Implemented Interfaces:
Describable<JCloudsSlaveTemplate>
,SlaveOptions.Holder
public class JCloudsSlaveTemplate
extends Object
implements Describable<JCloudsSlaveTemplate>, SlaveOptions.Holder
- Author:
- Vijay Kiran
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canProvision
(Label label) Get effective options declared by this object.getName()
Get configured options held by this object.org.openstack4j.model.compute.Server
provisionServer
(ServerScope scope, org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id) provisionSlave
(JCloudsCloud cloud, org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id) Provision and connect as a slave.
-
Field Details
-
OPENSTACK_CLOUD_NAME_KEY
- See Also:
-
OPENSTACK_TEMPLATE_NAME_KEY
- See Also:
-
-
Constructor Details
-
JCloudsSlaveTemplate
@DataBoundConstructor public JCloudsSlaveTemplate(@Nonnull String name, @Nonnull String labels, @CheckForNull SlaveOptions slaveOptions)
-
-
Method Details
-
getEffectiveSlaveOptions
Description copied from interface:SlaveOptions.Holder
Get effective options declared by this object. This is supposed to correctly evaluate all the overriding.- Specified by:
getEffectiveSlaveOptions
in interfaceSlaveOptions.Holder
-
getRawSlaveOptions
Description copied from interface:SlaveOptions.Holder
Get configured options held by this object. This holds only the user configured diffs compared to parent.- Specified by:
getRawSlaveOptions
in interfaceSlaveOptions.Holder
-
getLabelSet
-
getName
-
getLabels
-
canProvision
-
provisionSlave
@Nonnull public JCloudsSlave provisionSlave(@Nonnull JCloudsCloud cloud, @Nonnull org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id) throws JCloudsCloud.ProvisioningFailedException Provision and connect as a slave. The node is to be added to Jenkins by the caller. At the time the method completes, the node is ready to be launched.- Throws:
Openstack.ActionFailed
- Provisioning failed.JCloudsCloud.ProvisioningFailedException
- Provisioning failed.
-
provisionServer
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @Nonnull public org.openstack4j.model.compute.Server provisionServer(@CheckForNull ServerScope scope, @CheckForNull org.jenkinsci.plugins.cloudstats.ProvisioningActivity.Id id) throws Openstack.ActionFailed - Throws:
Openstack.ActionFailed
-
getDescriptor
- Specified by:
getDescriptor
in interfaceDescribable<JCloudsSlaveTemplate>
-