Class Stage
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<StageProperties>
com.atlassian.bamboo.specs.api.builders.plan.Stage
Represents a stage within Bamboo plan.
Stages organize plan into parts that are executed sequentially.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StagePropertiesbuild()description(@Nullable String description) Sets a stage description.finalStage(boolean isFinal) Specifies if stage is a final stage.AddsJobs to the stage.manual(boolean isManual) Specifies if stage is a manual stage.Sets a stage's name.
-
Constructor Details
-
Stage
-
Stage
Specify a stage with a given name. In the absence of oid, the name is used to identify the stage. If the stage with given name does not exist, a new one is created, otherwise existing one is updated.The name should be unique in scope of a plan it is defined in.
- Throws:
PropertiesValidationException
-
-
Method Details
-
name
Sets a stage's name. In the absence of oid, the name is used to identify the stage. If the stage with given name does not exist, a new one is created, otherwise existing one is updated.The name should be unique in scope of a plan it is defined in.
- Throws:
PropertiesValidationException
-
description
public Stage description(@Nullable @Nullable String description) throws PropertiesValidationException Sets a stage description.- Throws:
PropertiesValidationException
-
manual
Specifies if stage is a manual stage.If stage is a manual stage, Bamboo waits for user confirmation before starting it.
- Throws:
PropertiesValidationException
-
finalStage
Specifies if stage is a final stage.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.
- Throws:
PropertiesValidationException
-
jobs
AddsJobs to the stage. -
build
- Specified by:
buildin classEntityPropertiesBuilder<StageProperties>- Throws:
PropertiesValidationException
-