public class Deployment extends RootEntityPropertiesBuilder<DeploymentProperties>
Constructor and Description |
---|
Deployment(PlanIdentifier plan,
String name)
Specifies a deployment project.
|
Modifier and Type | Method and Description |
---|---|
protected DeploymentProperties |
build() |
Deployment |
description(String description)
Sets the deployment description.
|
Deployment |
environments(Environment... environments)
Adds the environments to the end of environments list.
|
String |
getName() |
BambooOidProperties |
getOid() |
String |
humanReadableId()
Entity type and id representation that is shown to human.
|
String |
humanReadableType()
Entity type that is shown to human.
|
Deployment |
name(String name)
Sets the deployment name.
|
Deployment |
oid(BambooOid oid)
Sets the deployments's oid.
|
Deployment |
oid(String oid)
Sets the deployments's oid.
|
Deployment |
releaseNaming(ReleaseNaming releaseNaming) |
public static final String TYPE
public Deployment(@NotNull PlanIdentifier plan, @NotNull String name)
plan
- plan that serves as source of artifacts and variables for this deployment projectname
- name of the projectpublic Deployment name(@NotNull String name) throws PropertiesValidationException
PropertiesValidationException
public Deployment oid(@Nullable String oid) throws PropertiesValidationException
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.
PropertiesValidationException
public Deployment oid(@Nullable BambooOid oid) throws PropertiesValidationException
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.
PropertiesValidationException
public Deployment description(String description)
public Deployment releaseNaming(@NotNull ReleaseNaming releaseNaming)
public Deployment environments(@NotNull Environment... environments)
protected DeploymentProperties build()
build
in class EntityPropertiesBuilder<DeploymentProperties>
public String humanReadableType()
RootEntityPropertiesBuilder
humanReadableType
in class RootEntityPropertiesBuilder<DeploymentProperties>
public String humanReadableId()
RootEntityPropertiesBuilder
humanReadableId
in class RootEntityPropertiesBuilder<DeploymentProperties>
public BambooOidProperties getOid()
public String getName()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.