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 ChainExecutionGets theChainExecutionthat theStageExecutionis a member of@Nullable StringGets the description of the Stage@NotNull ExecutionContextStores contextual data for the currentStageExecution@NotNull StringgetName()Gets the name of the StageintIndex of theChainStagewithin the currentChainbooleanIf the Stage is building or notbooleanIf the Stage has completed or notbooleanIf the Stage is successful or not
-
Method Details
-
getStageIndex
int getStageIndex()Index of theChainStagewithin the currentChain- Returns:
- 0-based index of the stage
-
getChainExecution
Gets theChainExecutionthat theStageExecutionis 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
-