public class DigitalOceanCloud extends Cloud
DigitalOceanCloud contains the main configuration values for running
slaves on DigitalOcean, e.g. apiKey/clientId to connect to the API.
The provision(hudson.model.Label, int) method will be called
by Jenkins as soon as a new slave needs to be provisioned.
The number of
| Modifier and Type | Class and Description |
|---|---|
static class |
DigitalOceanCloud.ConverterImpl |
static class |
DigitalOceanCloud.DescriptorImpl |
ExtensionPoint.LegacyInstancesAreScopedToHudsonModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem| Constructor and Description |
|---|
DigitalOceanCloud(String name,
String sshKeyId,
String instanceCap,
Boolean usePrivateNetworking,
String timeoutMinutes,
String connectionRetryWait,
List<? extends SlaveTemplate> templates)
Constructor parameters are injected via jelly in the jenkins global configuration
|
DigitalOceanCloud(String name,
String authToken,
String privateKey,
String sshKeyId,
String instanceCap,
Boolean usePrivateNetworking,
String timeoutMinutes,
String connectionRetryWait,
List<? extends SlaveTemplate> templates)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canProvision(Label label) |
com.myjeeva.digitalocean.impl.DigitalOceanClient |
getApiClient() |
String |
getAuthTokenCredentialId() |
static String |
getAuthTokenFromCredentialId(String credentialId) |
Integer |
getConnectionRetryWait() |
String |
getDisplayName() |
int |
getInstanceCap() |
String |
getName() |
String |
getPrivateKeyCredentialId() |
static String |
getPrivateKeyFromCredentialId(String credentialId) |
int |
getSshKeyId() |
List<SlaveTemplate> |
getTemplates() |
Integer |
getTimeoutMinutes() |
Boolean |
getUsePrivateNetworking() |
Collection<NodeProvisioner.PlannedNode> |
provision(Label label,
int excessWorkload)
The actual logic for provisioning a new droplet when it's needed by Jenkins.
|
protected Object |
readResolve() |
void |
setAuthTokenCredentialId(String credentialId) |
void |
setPrivateKeyCredentialId(String credentialId) |
all, getACL, getDescriptor, getSearchUrl, getUrladdAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActionsgetSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendErrorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission@Deprecated public DigitalOceanCloud(String name, String authToken, String privateKey, String sshKeyId, String instanceCap, Boolean usePrivateNetworking, String timeoutMinutes, String connectionRetryWait, List<? extends SlaveTemplate> templates)
name - A name associated with this cloud configurationauthToken - A DigitalOcean V2 API authentication token, generated on their website.privateKey - An RSA private key in text formatsshKeyId - An identifier (name) for an SSH key known to DigitalOceaninstanceCap - the maximum number of instances that can be startedusePrivateNetworking - Whether to use private networking to connect to the cloud.timeoutMinutes - the timeout in minutes.connectionRetryWait - the time to wait for SSH connections to worktemplates - the templates for this cloud@DataBoundConstructor public DigitalOceanCloud(String name, String sshKeyId, String instanceCap, Boolean usePrivateNetworking, String timeoutMinutes, String connectionRetryWait, List<? extends SlaveTemplate> templates)
name - A name associated with this cloud configurationsshKeyId - An identifier (name) for an SSH key known to DigitalOceaninstanceCap - the maximum number of instances that can be startedusePrivateNetworking - Whether to use private networking to connect to the cloud.timeoutMinutes - the timeout in minutes.connectionRetryWait - the time to wait for SSH connections to worktemplates - the templates for this cloud@DataBoundSetter public void setPrivateKeyCredentialId(String credentialId)
public String getPrivateKeyCredentialId()
@DataBoundSetter public void setAuthTokenCredentialId(String credentialId)
public String getAuthTokenCredentialId()
public String getDisplayName()
getDisplayName in interface ModelObjectgetDisplayName in class Cloudpublic Collection<NodeProvisioner.PlannedNode> provision(Label label, int excessWorkload)
public boolean canProvision(Label label)
canProvision in class Cloudpublic String getName()
public static String getPrivateKeyFromCredentialId(String credentialId)
public int getSshKeyId()
public int getInstanceCap()
public com.myjeeva.digitalocean.impl.DigitalOceanClient getApiClient()
public List<SlaveTemplate> getTemplates()
public Integer getTimeoutMinutes()
public Integer getConnectionRetryWait()
public Boolean getUsePrivateNetworking()
protected Object readResolve()
Copyright © 2016–2021. All rights reserved.