Class Stage
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<StageProperties>
-
- com.atlassian.bamboo.specs.api.builders.plan.Stage
-
public class Stage extends EntityPropertiesBuilder<StageProperties>
Represents a stage within Bamboo plan.Stages organize plan into parts that are executed sequentially.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StagePropertiesbuild()Stagedescription(@Nullable java.lang.String description)Sets a stage description.StagefinalStage(boolean isFinal)Specifies if stage is a final stage.Stagejobs(@NotNull Job... jobs)AddsJobs to the stage.Stagemanual(boolean isManual)Specifies if stage is a manual stage.Stagename(@NotNull java.lang.String name)Sets a stage's name.
-
-
-
Constructor Detail
-
Stage
public Stage(@NotNull @NotNull Stage copy)
-
Stage
public Stage(@NotNull @NotNull java.lang.String name) throws PropertiesValidationExceptionSpecify 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 Detail
-
name
public Stage name(@NotNull @NotNull java.lang.String name) throws PropertiesValidationException
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 java.lang.String description) throws PropertiesValidationException
Sets a stage description.- Throws:
PropertiesValidationException
-
manual
public Stage manual(boolean isManual) throws PropertiesValidationException
Specifies if stage is a manual stage.If stage is a manual stage, Bamboo waits for user confirmation before starting it.
- Throws:
PropertiesValidationException
-
finalStage
public Stage finalStage(boolean isFinal) throws PropertiesValidationException
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
-
build
protected StageProperties build() throws PropertiesValidationException
- Specified by:
buildin classEntityPropertiesBuilder<StageProperties>- Throws:
PropertiesValidationException
-
-