Package com.atlassian.bamboo.chains
Interface StageExecution
@PublicApi
public interface StageExecution
Represents a
ChainStage
executing within a Chain
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<BuildExecution>
Returns theBuildExecution
's that are executed during this stage@NotNull ChainExecution
Gets theChainExecution
that theStageExecution
is a member of@Nullable String
Gets the description of the Stage@NotNull ExecutionContext
Stores contextual data for the currentStageExecution
@NotNull String
getName()
Gets the name of the Stageint
Index of theChainStage
within the currentChain
boolean
If the Stage is building or notboolean
If the Stage has completed or notboolean
If the Stage is successful or not
-
Method Details
-
getStageIndex
int getStageIndex()Index of theChainStage
within the currentChain
- Returns:
- 0-based index of the stage
-
getChainExecution
Gets theChainExecution
that theStageExecution
is a member of- Returns:
- chainExecution
-
getName
Gets the name of the Stage- Returns:
- name
-
getDescription
Gets the description of the Stage- Returns:
- description
-
isBuilding
boolean isBuilding()If the Stage is building or not- Returns:
- building
-
isCompleted
boolean isCompleted()If the Stage has completed or not- Returns:
- completed
-
isSuccessful
boolean isSuccessful()If the Stage is successful or not- Returns:
- successful
-
getBuilds
Returns theBuildExecution
's that are executed during this stage- Returns:
- builds
-
getExecutionContext
Stores contextual data for the currentStageExecution
- Returns:
- executionContext
-