@PublicApi public interface ChainStageResult extends BambooObject, Describable
ChainStage
executionModifier and Type | Method and Description |
---|---|
boolean |
addBuildResult(BuildResultsSummary buildResult)
Adds a
BuildResultsSummary and sets the relationship to the ChainResultsSummary |
Set<BuildResultsSummary> |
getBuildResults()
Returns all the
BuildResultsSummary with this Stage result |
ChainResultsSummary |
getChainResult()
Returns the
ChainResultsSummary associated with this Stage result |
Collection<BuildResultsSummary> |
getFailedBuildResults()
Returns all the failed
BuildResultsSummary with this Stage result |
LifeCycleState |
getLifeCycleState() |
List<StageVariableContext> |
getManualVariables()
Get manual variables that were set before this stage started.
|
long |
getProcessingDuration()
Processing duration of stage (time of longest job in stage execution)
|
List<BuildResultsSummary> |
getSortedBuildResults()
Returns all the
BuildResultsSummary with this Stage result
ordered by build name. |
BuildState |
getState() |
Collection<BuildResultsSummary> |
getSuccessfulBuildResults()
Returns all the successful
BuildResultsSummary with this Stage result |
boolean |
isCompleted() |
boolean |
isFailed() |
boolean |
isFinal() |
boolean |
isFinished() |
boolean |
isManual()
Checks if result as manual (at the time of result creation)
Manual means stage execution is hold and waits for user interaction
|
boolean |
isNotBuilt()
Checks if the stage has unbuilt jobs inside it
|
boolean |
isPending() |
boolean |
isRestartable()
Checks if plan nas been failed and could be restarted on the stage where failed
|
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)
|
boolean |
isSuccessful() |
boolean |
removeBuildResult(BuildResultsSummary buildResult)
Removes a
BuildResultsSummary |
void |
setChainResult(ChainResultsSummary chainResult)
Sets the
ChainResultsSummary associated with this Stage result |
void |
setFinal(boolean finalStage) |
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
|
void |
setManualVariables(List<StageVariableContext> manualVariables) |
void |
setProcessingDuration(long processingDuration) |
setId
getId
setDescription, setName
getDescription, getName
@NotNull ChainResultsSummary getChainResult()
ChainResultsSummary
associated with this Stage resultvoid setChainResult(@NotNull ChainResultsSummary chainResult)
ChainResultsSummary
associated with this Stage resultchainResult
- @NotNull Set<BuildResultsSummary> getBuildResults()
BuildResultsSummary
with this Stage result@NotNull List<BuildResultsSummary> getSortedBuildResults()
BuildResultsSummary
with this Stage result
ordered by build name.
WARNING: Dont use in performance critical situations.@NotNull Collection<BuildResultsSummary> getFailedBuildResults()
BuildResultsSummary
with this Stage result@NotNull Collection<BuildResultsSummary> getSuccessfulBuildResults()
BuildResultsSummary
with this Stage resultboolean addBuildResult(@NotNull BuildResultsSummary buildResult)
BuildResultsSummary
and sets the relationship to the ChainResultsSummary
buildResult
- boolean removeBuildResult(@NotNull BuildResultsSummary buildResult)
BuildResultsSummary
buildResult
- boolean isPending()
boolean isCompleted()
boolean isSuccessful()
boolean isFailed()
boolean isFinished()
BuildState getState()
LifeCycleState getLifeCycleState()
boolean isManual()
void setManual(boolean manual)
boolean isFinal()
void setFinal(boolean finalStage)
boolean isRunnable()
boolean isRestartable()
boolean isNotBuilt()
long getProcessingDuration()
void setProcessingDuration(long processingDuration)
processingDuration
- @NotNull List<StageVariableContext> getManualVariables()
void setManualVariables(@NotNull List<StageVariableContext> manualVariables)
Copyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.