Package com.atlassian.bamboo.chains
Interface StageState
@Internal
public interface StageState
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addResultVariablesFromPreviousStages
(@NotNull Map<String, VariableDefinitionContext> resultVariables) Updates build context of all jobs in this stage with result variables collected in previous stage(s).@Nullable ChainBuildState
get
(@NotNull PlanResultKey planResultKey) Gets the Build State given the build result key@NotNull Collection<ChainBuildState>
Get Builds associated with this StageThe id of theChainStageResult
@Nullable String
Get the Stage description@NotNull ExecutionContext
Stores contextual data for the currentStageState
@NotNull String
getName()
Get Stage nameint
Index of theChainStage
within the currentChain
boolean
Checks if the stage is buildingboolean
Checks if the stage has been marked as completedboolean
isFailed()
Checks if the stage has failedboolean
isFinal()
boolean
isManual()
boolean
Checks if the stage has completed successfullyboolean
Checks if the stage is waiting to be executedvoid
setPublishedChainArtifactsInfo
(@NotNull Multimap<String, Artifact> publishedChainArtifacts) Updates build context of all jobs in this stage with artifacts published in previous stage(s).void
setSkipped
(boolean skipped)
-
Method Details
-
getChainStageResultId
Long getChainStageResultId()The id of theChainStageResult
- Returns:
- id
-
getStageIndex
int getStageIndex()Index of theChainStage
within the currentChain
- Returns:
- 0-based index of the stage
-
getName
Get Stage name- Returns:
- name
-
getDescription
Get the Stage description- Returns:
- description
-
getBuilds
Get Builds associated with this Stage- Returns:
- builds
-
isWaiting
boolean isWaiting()Checks if the stage is waiting to be executed- Returns:
- waiting
-
isBuilding
boolean isBuilding()Checks if the stage is building- Returns:
- building
-
isCompleted
boolean isCompleted()Checks if the stage has been marked as completed- Returns:
- completed
-
isSuccessful
boolean isSuccessful()Checks if the stage has completed successfully- Returns:
- success
-
isFailed
boolean isFailed()Checks if the stage has failed- Returns:
- failure
-
get
Gets the Build State given the build result key- Parameters:
planResultKey
-- Returns:
- buildState
-
setSkipped
void setSkipped(boolean skipped) -
getExecutionContext
Stores contextual data for the currentStageState
- Returns:
- executionContext
-
isManual
boolean isManual() -
isFinal
boolean isFinal() -
addResultVariablesFromPreviousStages
void addResultVariablesFromPreviousStages(@NotNull @NotNull Map<String, VariableDefinitionContext> resultVariables) Updates build context of all jobs in this stage with result variables collected in previous stage(s).- Parameters:
resultVariables
-
-
setPublishedChainArtifactsInfo
void setPublishedChainArtifactsInfo(@NotNull @NotNull Multimap<String, Artifact> publishedChainArtifacts) Updates build context of all jobs in this stage with artifacts published in previous stage(s).- Parameters:
publishedChainArtifacts
-
-