public class Stage extends EntityPropertiesBuilder<StageProperties>
Stages organize plan into parts that are executed sequentially.
| Constructor and Description |
|---|
Stage(Stage copy) |
Stage(String name)
Specify a stage with a given name.
|
| Modifier and Type | Method and Description |
|---|---|
protected StageProperties |
build() |
Stage |
description(String description)
Sets a stage description.
|
Stage |
finalStage(boolean isFinal)
Specifies if stage is a final stage.
|
Stage |
jobs(Job... jobs)
Adds
Jobs to the stage. |
Stage |
manual(boolean isManual)
Specifies if stage is a manual stage.
|
Stage |
name(String name)
Sets a stage's name.
|
public Stage(@NotNull
Stage copy)
public Stage(@NotNull
String name)
throws PropertiesValidationException
The name should be unique in scope of a plan it is defined in.
PropertiesValidationExceptionpublic Stage name(@NotNull String name) throws PropertiesValidationException
The name should be unique in scope of a plan it is defined in.
PropertiesValidationExceptionpublic Stage description(@Nullable String description) throws PropertiesValidationException
PropertiesValidationExceptionpublic Stage manual(boolean isManual) throws PropertiesValidationException
If stage is a manual stage, Bamboo waits for user confirmation before starting it.
PropertiesValidationExceptionpublic Stage finalStage(boolean isFinal) throws PropertiesValidationException
If stage is a final stage, it will be executed even if previous stages failed. Note however that placing manual stage before a final stage will prevent the final stage from executing until a user confirms execution of the manual stage.
PropertiesValidationExceptionprotected StageProperties build() throws PropertiesValidationException
build in class EntityPropertiesBuilder<StageProperties>PropertiesValidationExceptionCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.