public class Environment extends EntityPropertiesBuilder<EnvironmentProperties>
Constructor and Description |
---|
Environment(String name)
Specifies environment.
|
Modifier and Type | Method and Description |
---|---|
protected EnvironmentProperties |
build() |
Environment |
description(String description)
Sets the environment description.
|
Environment |
dockerConfiguration(DockerConfiguration dockerConfiguration)
Configure Docker for this environment.
|
Environment |
finalTasks(Task<?,?>... finalTasks)
Adds provided
Task s to the list of the final tasks executed by the environment. |
Environment |
notifications(Notification... notifications)
Appends a notification rule to the environment.
|
Environment |
pluginConfigurations(EnvironmentPluginConfiguration<? extends EnvironmentPluginConfigurationProperties>... pluginConfigurations)
Appends plugin configuration to the environment.
|
Environment |
requirements(Requirement... requirements)
Adds custom requirements to the environment.
|
Environment |
tasks(Task<?,?>... tasks)
Adds provided
Task s to the list of tasks executed by the environment. |
Environment |
triggers(Trigger<?,?>... triggers)
Adds triggers to this environment.
|
Environment |
variables(Variable... variables)
Adds deployment environment variables.
|
public Environment(@NotNull String name)
name
- name of the environment.public Environment description(String description)
public Environment tasks(@NotNull Task<?,?>... tasks)
Task
s to the list of tasks executed by the environment.public Environment finalTasks(@NotNull Task<?,?>... finalTasks)
Task
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.
public Environment triggers(@NotNull Trigger<?,?>... triggers)
public Environment variables(@NotNull Variable... variables)
public Environment requirements(Requirement... requirements)
Requirements control which Bamboo agents are able to execute deployments to the environment.
public Environment notifications(@NotNull Notification... notifications)
public Environment dockerConfiguration(@NotNull DockerConfiguration dockerConfiguration)
DockerConfiguration
public Environment pluginConfigurations(@NotNull EnvironmentPluginConfiguration<? extends EnvironmentPluginConfigurationProperties>... pluginConfigurations)
protected EnvironmentProperties build()
build
in class EntityPropertiesBuilder<EnvironmentProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.