public class CodeBuilderCloud
extends hudson.slaves.Cloud
provision(Label label, int excessWorkload)
on this
class to create new nodes.Modifier and Type | Class and Description |
---|---|
static class |
CodeBuilderCloud.DescriptorImpl |
Constructor and Description |
---|
CodeBuilderCloud(String name,
String projectName,
String credentialsId,
String region)
Constructor for CodeBuilderCloud.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canProvision(hudson.model.Label label) |
int |
getAgentTimeout()
Getter for the field
agentTimeout . |
com.amazonaws.services.codebuild.AWSCodeBuild |
getClient()
Getter for the field
client . |
String |
getComputeType()
Getter for the field
computeType . |
String |
getJenkinsUrl()
Getter for the field
jenkinsUrl . |
String |
getJnlpImage()
Getter for the field
jnlpImage . |
String |
getLabel()
Getter for the field
label . |
String |
getProjectName()
Getter for the field
projectName . |
String |
getRegion()
Getter for the field
region . |
protected static jenkins.model.Jenkins |
jenkins()
The active Jenkins instance.
|
Collection<hudson.slaves.NodeProvisioner.PlannedNode> |
provision(hudson.model.Label label,
int excessWorkload) |
void |
setAgentTimeout(int agentTimeout)
Setter for the field
agentTimeout . |
void |
setComputeType(String computeType)
Setter for the field
computeType . |
void |
setJenkinsUrl(String jenkinsUrl)
Setter for the field
jenkinsUrl . |
void |
setJnlpImage(String jnlpImage)
Setter for the field
jnlpImage . |
void |
setLabel(String label)
Setter for the field
label . |
String |
toString() |
all, checkPermission, getACL, getDescriptor, getDisplayName, getSearchUrl, hasPermission
@DataBoundConstructor public CodeBuilderCloud(String name, @Nonnull String projectName, @Nullable String credentialsId, @Nonnull String region) throws InterruptedException
name
- the name of the cloud or null if you want it
auto-generated.projectName
- the name of the AWS CodeBuild project to build from.credentialsId
- the credentials ID to use or null/empty if pulled from
environment.region
- the AWS region to use.InterruptedException
- if any.@Nonnull protected static jenkins.model.Jenkins jenkins()
Jenkins
object.@Nonnull public String getProjectName()
projectName
.String
object.@DataBoundSetter public void setLabel(String label)
label
.label
- a String
object.@Nonnull public String getJenkinsUrl()
jenkinsUrl
.String
object.@DataBoundSetter public void setJenkinsUrl(String jenkinsUrl)
jenkinsUrl
.jenkinsUrl
- a String
object.@Nonnull public String getJnlpImage()
jnlpImage
.String
object.@DataBoundSetter public void setJnlpImage(String jnlpImage)
jnlpImage
.jnlpImage
- a String
object.@Nonnull public int getAgentTimeout()
agentTimeout
.@DataBoundSetter public void setAgentTimeout(int agentTimeout)
agentTimeout
.agentTimeout
- a int.@Nonnull public String getComputeType()
computeType
.String
object.@DataBoundSetter public void setComputeType(String computeType)
computeType
.computeType
- a String
object.public com.amazonaws.services.codebuild.AWSCodeBuild getClient()
client
.AWSCodeBuild
object.public Collection<hudson.slaves.NodeProvisioner.PlannedNode> provision(hudson.model.Label label, int excessWorkload)
provision
in class hudson.slaves.Cloud
public boolean canProvision(hudson.model.Label label)
canProvision
in class hudson.slaves.Cloud
Copyright © 2016–2019. All rights reserved.