Class CodeBuildCloud
- java.lang.Object
-
- hudson.model.AbstractModelObject
-
- hudson.model.Actionable
-
- hudson.slaves.Cloud
-
- io.jenkins.plugins.codebuildcloud.CodeBuildCloud
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Cloud>
,ModelObject
,SearchableModelObject
,SearchItem
,AccessControlled
,ModelObjectWithContextMenu
public class CodeBuildCloud extends Cloud
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CodeBuildCloud.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.slaves.Cloud
Cloud.CloudState
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.model.ModelObjectWithContextMenu
ModelObjectWithContextMenu.ContextMenu, ModelObjectWithContextMenu.ContextMenuVisibility, ModelObjectWithContextMenu.MenuItem, ModelObjectWithContextMenu.MenuItemType
-
-
Constructor Summary
Constructors Constructor Description CodeBuildCloud(String name, String codeBuildProjectName, String credentialId, String region, String label, Integer agentConnectTimeout, String dockerImage, String dockerImagePullCredentials, String computeType, String environmentType, String buildSpec, Boolean verifyIsCodeBuildIPOnJNLP, Integer maxAgents, String direct, Boolean disableHttpsCertValidation, Boolean noKeepAlive, Boolean noReconnect, String protocols, String proxyCredentialsId, String tunnel, String jenkinsUrl, Boolean webSocket)
-
Method Summary
-
Methods inherited from class hudson.slaves.Cloud
all, canProvision, getACL, getDescriptor, getDisplayName, getSearchUrl, getUrl, provision, registerPermissions
-
Methods inherited from class hudson.model.Actionable
addAction, addOrReplaceAction, doContextMenu, getAction, getAction, getActions, getActions, getAllActions, getDynamic, removeAction, removeActions, replaceAction, replaceActions
-
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface hudson.security.AccessControlled
checkAnyPermission, checkPermission, hasAnyPermission, hasPermission, hasPermission, hasPermission2
-
-
-
-
Constructor Detail
-
CodeBuildCloud
@DataBoundConstructor public CodeBuildCloud(@NonNull String name, @NonNull String codeBuildProjectName, @NonNull String credentialId, @NonNull String region, @NonNull String label, @NonNull Integer agentConnectTimeout, @NonNull String dockerImage, @NonNull String dockerImagePullCredentials, @NonNull String computeType, @NonNull String environmentType, @NonNull String buildSpec, @NonNull Boolean verifyIsCodeBuildIPOnJNLP, @NonNull Integer maxAgents, @NonNull String direct, @NonNull Boolean disableHttpsCertValidation, @NonNull Boolean noKeepAlive, @NonNull Boolean noReconnect, @NonNull String protocols, @NonNull String proxyCredentialsId, @NonNull String tunnel, @NonNull String jenkinsUrl, @NonNull Boolean webSocket) throws io.jenkins.cli.shaded.org.apache.commons.lang.NotImplementedException
- Throws:
io.jenkins.cli.shaded.org.apache.commons.lang.NotImplementedException
-
-
Method Detail
-
getJenkins
@NonNull protected static Jenkins getJenkins()
-
getName
public String getName()
-
getCodeBuildProjectName
@NonNull public String getCodeBuildProjectName()
-
setCodeBuildProjectName
@DataBoundSetter public void setCodeBuildProjectName(String codeBuildProjectName)
-
getRegion
@NonNull public String getRegion()
-
setRegion
@DataBoundSetter public void setRegion(String region)
-
getLabel
@NonNull public String getLabel()
-
setLabel
@DataBoundSetter public void setLabel(String label)
-
getAgentConnectTimeout
@NonNull public Integer getAgentConnectTimeout()
-
setAgentConnectTimeout
@DataBoundSetter public void setAgentConnectTimeout(Integer agentTimeout)
-
getCredentialId
@NonNull public String getCredentialId()
-
setCredentialId
@DataBoundSetter public void setCredentialId(String credentialId)
-
getControllerIdentity
@NonNull public Secret getControllerIdentity()
-
setControllerIdentity
@DataBoundSetter public void setControllerIdentity(Secret controllerIdentity)
-
getMaxAgents
@NonNull public Integer getMaxAgents()
-
setMaxAgents
@DataBoundSetter public void setMaxAgents(Integer maxAgents)
-
getDirect
@NonNull public String getDirect()
-
setDirect
@DataBoundSetter public void setDirect(String direct)
-
getDisableHttpsCertValidation
@NonNull public Boolean getDisableHttpsCertValidation()
-
setDisableHttpsCertValidation
@DataBoundSetter public void setDisableHttpsCertValidation(Boolean disableHttpsCertValidation)
-
getNoKeepAlive
@NonNull public Boolean getNoKeepAlive()
-
setNoKeepAlive
@DataBoundSetter public void setNoKeepAlive(Boolean noKeepAlive)
-
getNoReconnect
@NonNull public Boolean getNoReconnect()
-
setNoReconnect
@DataBoundSetter public void setNoReconnect(Boolean noReconnect)
-
getProtocols
@NonNull public String getProtocols()
-
setProtocols
@DataBoundSetter public void setProtocols(String protocols)
-
getProxyCredentialsId
@NonNull public String getProxyCredentialsId()
-
setProxyCredentialsId
@DataBoundSetter public void setProxyCredentialsId(String proxyCredentialsId)
-
getTunnel
@NonNull public String getTunnel()
-
setTunnel
@DataBoundSetter public void setTunnel(String tunnel)
-
getJenkinsUrl
@NonNull public String getJenkinsUrl()
-
setJenkinsUrl
@DataBoundSetter public void setJenkinsUrl(String jenkinsUrl)
-
getWebSocket
@NonNull public Boolean getWebSocket()
-
setWebSocket
@DataBoundSetter public void setWebSocket(Boolean webSocket)
-
getVerifyIsCodeBuildIPOnJNLP
@NonNull public Boolean getVerifyIsCodeBuildIPOnJNLP()
-
setVerifyIsCodeBuildIPOnJNLP
@DataBoundSetter public void setVerifyIsCodeBuildIPOnJNLP(Boolean verifyIsCodeBuildIPOnJNLP)
-
getDockerImage
@NonNull public String getDockerImage()
-
setDockerImage
@DataBoundSetter public void setDockerImage(String dockerImage)
-
getDockerImagePullCredentials
@NonNull public String getDockerImagePullCredentials()
-
setDockerImagePullCredentials
@DataBoundSetter public void setDockerImagePullCredentials(String dockerImagePullCredentials)
-
getComputeType
@NonNull public String getComputeType()
-
setComputeType
@DataBoundSetter public void setComputeType(String computeType)
-
getEnvironmentType
@NonNull public String getEnvironmentType()
-
setEnvironmentType
@DataBoundSetter public void setEnvironmentType(String environmentType)
-
getBuildSpec
@NonNull public String getBuildSpec()
-
setBuildSpec
@DataBoundSetter public void setBuildSpec(String buildSpec)
-
canProvision
public boolean canProvision(Label label)
- Overrides:
canProvision
in classCloud
-
getClient
public CodeBuildClientWrapper getClient()
Getter for the fieldclient
.- Returns:
- a
AWSCodeBuild
object.
-
provision
public Collection<NodeProvisioner.PlannedNode> provision(Label label, int excessWorkload)
-
-