Package com.atlassian.bamboo.chains
Interface ChainStageResult
- All Superinterfaces:
BambooIdProvider,BambooObject,Describable,DescriptionProvider,NameProvider
- All Known Implementing Classes:
ChainStageResultImpl
Represents the result of a
ChainStage execution- Since:
- 2.7
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddBuildResult(@NotNull BuildResultsSummary buildResult) Adds aBuildResultsSummaryand sets the relationship to theChainResultsSummaryvoidaddManualVariable(@NotNull StageVariableContext stageVariableContext) @NotNull Set<BuildResultsSummary>Returns all theBuildResultsSummarywith this Stage result@NotNull ChainResultsSummaryReturns theChainResultsSummaryassociated with this Stage result@NotNull Collection<BuildResultsSummary>Returns all the failedBuildResultsSummarywith this Stage result@NotNull List<StageVariableContext>Get manual variables that were set before this stage started.@NotNull List<StageVariableContext>Since 7.0.longProcessing duration of stage (time of longest job in stage execution)@NotNull List<BuildResultsSummary>Returns all theBuildResultsSummarywith this Stage result ordered by build name.getState()@NotNull Collection<BuildResultsSummary>Returns all the successfulBuildResultsSummarywith this Stage resultbooleanbooleanbooleanbooleanisFailed()booleanisFinal()booleanbooleanisManual()Checks if result as manual (at the time of result creation) Manual means stage execution is hold and waits for user interactionbooleanChecks if the stage has unbuilt jobs inside itbooleanbooleanChecks if plan nas been failed and could be restarted on the stage where failedbooleanChecks if current stage if first manual stage waiting for execution (chain is completed on previous stage and waiting for this stage to execute)booleanbooleanremoveBuildResult(@NotNull BuildResultsSummary buildResult) Removes aBuildResultsSummaryvoidsetChainResult(@NotNull ChainResultsSummary chainResult) Sets theChainResultsSummaryassociated with this Stage resultvoidsetFinal(boolean finalStage) voidsetManual(boolean manual) Marks result as optional (at the time of result creation) Manual means stage execution is hold and waits for user interactionvoidsetProcessingDuration(long processingDuration) Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface com.atlassian.bamboo.Describable
setDescription, setNameMethods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription, getName
-
Method Details
-
getChainResult
Returns theChainResultsSummaryassociated with this Stage result- Returns:
- chainResult
-
setChainResult
Sets theChainResultsSummaryassociated with this Stage result- Parameters:
chainResult-
-
getBuildResults
Returns all theBuildResultsSummarywith this Stage result- Returns:
- results
-
getSortedBuildResults
Returns all theBuildResultsSummarywith this Stage result ordered by build name. WARNING: Dont use in performance critical situations.- Returns:
- results
-
getFailedBuildResults
Returns all the failedBuildResultsSummarywith this Stage result- Returns:
- results
-
getSuccessfulBuildResults
Returns all the successfulBuildResultsSummarywith this Stage result- Returns:
- results
-
addBuildResult
Adds aBuildResultsSummaryand sets the relationship to theChainResultsSummary- Parameters:
buildResult-- Returns:
- success
-
removeBuildResult
Removes aBuildResultsSummary- Parameters:
buildResult-- Returns:
- success
-
isPending
boolean isPending() -
isCompleted
boolean isCompleted() -
isAllJobsExist
boolean isAllJobsExist()- Returns:
- true iff all the jobs in this stage result still exist
- Since:
- 6.9
-
isAllNotSuccessfulJobsExist
boolean isAllNotSuccessfulJobsExist()- Returns:
- true iff all the jobs in this stage result that are not finished successfully still exist
- Since:
- 6.9
-
isSuccessful
boolean isSuccessful() -
isFailed
boolean isFailed() -
isFinished
boolean isFinished() -
getState
BuildState getState() -
getLifeCycleState
LifeCycleState getLifeCycleState() -
isManual
boolean isManual()Checks if result as manual (at the time of result creation) Manual means stage execution is hold and waits for user interaction- Returns:
- true if manual
-
setManual
void setManual(boolean manual) Marks result as optional (at the time of result creation) Manual means stage execution is hold and waits for user interaction -
isFinal
boolean isFinal() -
setFinal
void setFinal(boolean finalStage) -
isRunnable
boolean isRunnable()Checks if current stage if first manual stage waiting for execution (chain is completed on previous stage and waiting for this stage to execute)- Returns:
- true if stage is ready and allowed for manual execution
-
isRestartable
boolean isRestartable()Checks if plan nas been failed and could be restarted on the stage where failed -
isNotBuilt
boolean isNotBuilt()Checks if the stage has unbuilt jobs inside it- Returns:
-
getProcessingDuration
long getProcessingDuration()Processing duration of stage (time of longest job in stage execution)- Returns:
-
setProcessingDuration
void setProcessingDuration(long processingDuration) - Parameters:
processingDuration-
-
getManualVariables
Get manual variables that were set before this stage started. This contains only the variables that changed compared to the previous stage.- Since:
- 5.7
-
addManualVariable
-
getManualVariablesEncrypted
Since 7.0. For internal use only. UsegetManualVariables()oraddManualVariable(StageVariableContext)instead.
-