Class Environment
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<EnvironmentProperties>
com.atlassian.bamboo.specs.api.builders.deployment.Environment
Represents a deployment environment.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Specifies whether the release must be approved before deploying to the environment and if broken releases are allowed. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets release approval prerequisite the environment requires to be met by deployment project release toEnvironment.ReleaseApprovalPrerequisite.APPROVED
.protected EnvironmentProperties
build()
description
(String description) Sets the environment description.dockerConfiguration
(@NotNull DockerConfiguration dockerConfiguration) Configure Docker for this environment.finalTasks
(@NotNull Task<?, ?>... finalTasks) Adds providedTask
s to the list of the final tasks executed by the environment.getName()
Sets release approval prerequisite the environment requires to be met by deployment project release toEnvironment.ReleaseApprovalPrerequisite.NONE
.Sets release approval prerequisite the environment requires to be met by deployment project release toEnvironment.ReleaseApprovalPrerequisite.NOT_BROKEN
.notifications
(@NotNull Notification... notifications) Appends a notification rule to the environment.pluginConfigurations
(@NotNull EnvironmentPluginConfiguration<? extends EnvironmentPluginConfigurationProperties>... pluginConfigurations) Appends plugin configuration to the environment.releaseApprovalPrerequisite
(@NotNull Environment.ReleaseApprovalPrerequisite releaseApprovalPrerequisite) Sets release approval prerequisite the environment requires to be met by deployment project release before the deployment can be launched.requirements
(Requirement... requirements) Adds custom requirements to the environment.Adds providedTask
s to the list of tasks executed by the environment.Adds triggers to this environment.Adds deployment environment variables.
-
Constructor Details
-
Environment
Specifies environment.- Parameters:
name
- name of the environment.
-
-
Method Details
-
description
Sets the environment description. -
releaseApprovalPrerequisite
public Environment releaseApprovalPrerequisite(@NotNull @NotNull Environment.ReleaseApprovalPrerequisite releaseApprovalPrerequisite) Sets release approval prerequisite the environment requires to be met by deployment project release before the deployment can be launched. The deployment project release is the context the environment is executed in. The default prerequisite isEnvironment.ReleaseApprovalPrerequisite.NOT_BROKEN
.- Parameters:
releaseApprovalPrerequisite
- the prerequisite to set- Since:
- 9.4
-
noneReleaseApprovalPrerequisite
Sets release approval prerequisite the environment requires to be met by deployment project release toEnvironment.ReleaseApprovalPrerequisite.NONE
. That means there are no requirements. Any release can be deployed to the environment.- Since:
- 10.0
-
notBrokenReleaseApprovalPrerequisite
Sets release approval prerequisite the environment requires to be met by deployment project release toEnvironment.ReleaseApprovalPrerequisite.NOT_BROKEN
. That means the release can be deployed to the environment if it's not marked as broken by anyone. This is the default prerequisite.- Since:
- 10.0
-
approvedReleaseApprovalPrerequisite
Sets release approval prerequisite the environment requires to be met by deployment project release toEnvironment.ReleaseApprovalPrerequisite.APPROVED
. That means the release can be deployed to the environment if there is at least one approval and the release is not marked as broken by anyone.- Since:
- 10.0
-
tasks
Adds providedTask
s to the list of tasks executed by the environment. -
finalTasks
Adds providedTask
s to the list of the final tasks executed by the environment.Final tasks for a environment are always executed, even if previous tasks in the environment failed.
-
triggers
Adds triggers to this environment. -
variables
Adds deployment environment variables. -
requirements
Adds custom requirements to the environment.Requirements control which Bamboo agents are able to execute deployments to the environment.
-
notifications
Appends a notification rule to the environment. -
dockerConfiguration
Configure Docker for this environment.- See Also:
-
pluginConfigurations
public Environment pluginConfigurations(@NotNull @NotNull EnvironmentPluginConfiguration<? extends EnvironmentPluginConfigurationProperties>... pluginConfigurations) Appends plugin configuration to the environment. If the same plugin is specified second time, its configuration is overwritten. -
getName
-
build
- Specified by:
build
in classEntityPropertiesBuilder<EnvironmentProperties>
-