@Entity public class ChainStageResultImpl extends BambooEntityObject implements ChainStageResult
| Constructor and Description |
|---|
ChainStageResultImpl() |
ChainStageResultImpl(String name,
String description,
boolean manual,
boolean finalStage,
ChainResultsSummary chainResult) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBuildResult(@NotNull BuildResultsSummary buildResult)
Adds a
BuildResultsSummary and sets the relationship to the ChainResultsSummary |
void |
addManualVariable(@NotNull StageVariableContext stageVariableContext) |
@NotNull Set<BuildResultsSummary> |
getBuildResults()
Returns all the
BuildResultsSummary with this Stage result |
@NotNull ChainResultsSummary |
getChainResult()
Returns the
ChainResultsSummary associated with this Stage result |
@Nullable String |
getDescription() |
@NotNull Collection<BuildResultsSummary> |
getFailedBuildResults()
Returns all the failed
BuildResultsSummary with this Stage result |
LifeCycleState |
getLifeCycleState() |
@NotNull List<StageVariableContext> |
getManualVariables()
Get manual variables that were set before this stage started.
|
List<StageVariableContext> |
getManualVariablesEncrypted()
Since 7.0.
|
@NotNull String |
getName() |
long |
getProcessingDuration()
Processing duration of stage (time of longest job in stage execution)
|
@NotNull List<BuildResultsSummary> |
getSortedBuildResults()
Returns all the
BuildResultsSummary with this Stage result
ordered by build name. |
BuildState |
getState() |
@NotNull Collection<BuildResultsSummary> |
getSuccessfulBuildResults()
Returns all the successful
BuildResultsSummary with this Stage result |
boolean |
isAllJobsExist() |
boolean |
isAllNotSuccessfulJobsExist() |
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(@NotNull BuildResultsSummary buildResult)
Removes a
BuildResultsSummary |
void |
setBuildResults(@NotNull Set<BuildResultsSummary> buildResults) |
void |
setChainResult(@NotNull ChainResultsSummary chainResult)
Sets the
ChainResultsSummary associated with this Stage result |
void |
setDescription(@Nullable String description) |
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 |
setName(@NotNull String name) |
void |
setProcessingDuration(long processingDuration) |
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitsetIdgetIdpublic ChainStageResultImpl(String name, String description, boolean manual, boolean finalStage, ChainResultsSummary chainResult)
public ChainStageResultImpl()
@NotNull public @NotNull String getName()
getName in interface DescriptionProvidergetName in interface NameProviderpublic void setName(@NotNull
@NotNull String name)
setName in interface Describable@Nullable public @Nullable String getDescription()
getDescription in interface DescriptionProviderpublic void setDescription(@Nullable
@Nullable String description)
setDescription in interface Describablepublic boolean isManual()
ChainStageResultisManual in interface ChainStageResultpublic void setManual(boolean manual)
ChainStageResultsetManual in interface ChainStageResultpublic boolean isFinal()
isFinal in interface ChainStageResultpublic void setFinal(boolean finalStage)
setFinal in interface ChainStageResultpublic long getProcessingDuration()
ChainStageResultgetProcessingDuration in interface ChainStageResultpublic void setProcessingDuration(long processingDuration)
setProcessingDuration in interface ChainStageResult@NotNull public @NotNull ChainResultsSummary getChainResult()
ChainStageResultChainResultsSummary associated with this Stage resultgetChainResult in interface ChainStageResultpublic void setChainResult(@NotNull
@NotNull ChainResultsSummary chainResult)
ChainStageResultChainResultsSummary associated with this Stage resultsetChainResult in interface ChainStageResult@NotNull public @NotNull Set<BuildResultsSummary> getBuildResults()
ChainStageResultBuildResultsSummary with this Stage resultgetBuildResults in interface ChainStageResult@NotNull public @NotNull List<BuildResultsSummary> getSortedBuildResults()
ChainStageResultBuildResultsSummary with this Stage result
ordered by build name.
WARNING: Dont use in performance critical situations.getSortedBuildResults in interface ChainStageResult@NotNull public @NotNull Collection<BuildResultsSummary> getFailedBuildResults()
ChainStageResultBuildResultsSummary with this Stage resultgetFailedBuildResults in interface ChainStageResult@NotNull public @NotNull Collection<BuildResultsSummary> getSuccessfulBuildResults()
ChainStageResultBuildResultsSummary with this Stage resultgetSuccessfulBuildResults in interface ChainStageResultpublic void setBuildResults(@NotNull
@NotNull Set<BuildResultsSummary> buildResults)
public boolean addBuildResult(@NotNull
@NotNull BuildResultsSummary buildResult)
ChainStageResultBuildResultsSummary and sets the relationship to the ChainResultsSummaryaddBuildResult in interface ChainStageResultpublic boolean removeBuildResult(@NotNull
@NotNull BuildResultsSummary buildResult)
ChainStageResultBuildResultsSummaryremoveBuildResult in interface ChainStageResultpublic boolean isPending()
isPending in interface ChainStageResultpublic boolean isNotBuilt()
ChainStageResultisNotBuilt in interface ChainStageResultpublic boolean isCompleted()
isCompleted in interface ChainStageResultpublic boolean isFinished()
isFinished in interface ChainStageResultpublic boolean isAllJobsExist()
isAllJobsExist in interface ChainStageResultpublic boolean isAllNotSuccessfulJobsExist()
isAllNotSuccessfulJobsExist in interface ChainStageResultpublic boolean isSuccessful()
isSuccessful in interface ChainStageResultpublic boolean isFailed()
isFailed in interface ChainStageResultpublic boolean isRunnable()
ChainStageResultisRunnable in interface ChainStageResultpublic boolean isRestartable()
ChainStageResultisRestartable in interface ChainStageResultpublic BuildState getState()
getState in interface ChainStageResultpublic LifeCycleState getLifeCycleState()
getLifeCycleState in interface ChainStageResultpublic List<StageVariableContext> getManualVariablesEncrypted()
ChainStageResultChainStageResult.getManualVariables() or ChainStageResult.addManualVariable(StageVariableContext) instead.getManualVariablesEncrypted in interface ChainStageResult@NotNull public @NotNull List<StageVariableContext> getManualVariables()
ChainStageResultgetManualVariables in interface ChainStageResultpublic void addManualVariable(@NotNull
@NotNull StageVariableContext stageVariableContext)
addManualVariable in interface ChainStageResultCopyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.