Class Deployment
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<T>
com.atlassian.bamboo.specs.api.builders.RootEntityPropertiesBuilder<DeploymentProperties>
com.atlassian.bamboo.specs.api.builders.deployment.Deployment
Represents a deployment project.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDeployment
(@NotNull PlanIdentifier plan, @NotNull String name) Specifies a deployment project. -
Method Summary
Modifier and TypeMethodDescriptionprotected DeploymentProperties
build()
description
(String description) Sets the deployment description.environments
(@NotNull Environment... environments) Adds the environments to the end of environments list.getName()
getOid()
Entity type and id representation that is shown to human.Entity type that is shown to human.Sets the deployment name.Sets the deployments's oid.Sets the deployments's oid.releaseNaming
(@NotNull ReleaseNaming releaseNaming)
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
Deployment
Specifies a deployment project.- Parameters:
plan
- plan that serves as source of artifacts and variables for this deployment projectname
- name of the project
-
-
Method Details
-
name
Sets the deployment name.- Throws:
PropertiesValidationException
-
oid
Sets the deployments's oid.If set, it is used to identify the deployment project. If a deployment with specified oid does not exist, a new one is created, otherwise it is updated.
- Throws:
PropertiesValidationException
-
oid
Sets the deployments's oid.If set, it is used to identify the deployment project. If a deployment with specified oid does not exist, a new one is created, otherwise it is updated.
- Throws:
PropertiesValidationException
-
description
Sets the deployment description. -
releaseNaming
-
environments
Adds the environments to the end of environments list. The order of environments is preserved. -
build
- Specified by:
build
in classEntityPropertiesBuilder<DeploymentProperties>
-
humanReadableType
Description copied from class:RootEntityPropertiesBuilder
Entity type that is shown to human.- Specified by:
humanReadableType
in classRootEntityPropertiesBuilder<DeploymentProperties>
-
humanReadableId
Description copied from class:RootEntityPropertiesBuilder
Entity type and id representation that is shown to human.- Specified by:
humanReadableId
in classRootEntityPropertiesBuilder<DeploymentProperties>
-
getOid
-
getName
-