@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, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
public ChainStageResultImpl(String name, String description, boolean manual, boolean finalStage, ChainResultsSummary chainResult)
public ChainStageResultImpl()
@NotNull public @NotNull String getName()
getName
in interface DescriptionProvider
getName
in interface NameProvider
public void setName(@NotNull @NotNull String name)
setName
in interface Describable
@Nullable public @Nullable String getDescription()
getDescription
in interface DescriptionProvider
public void setDescription(@Nullable @Nullable String description)
setDescription
in interface Describable
public boolean isManual()
ChainStageResult
isManual
in interface ChainStageResult
public void setManual(boolean manual)
ChainStageResult
setManual
in interface ChainStageResult
public boolean isFinal()
isFinal
in interface ChainStageResult
public void setFinal(boolean finalStage)
setFinal
in interface ChainStageResult
public long getProcessingDuration()
ChainStageResult
getProcessingDuration
in interface ChainStageResult
public void setProcessingDuration(long processingDuration)
setProcessingDuration
in interface ChainStageResult
@NotNull public @NotNull ChainResultsSummary getChainResult()
ChainStageResult
ChainResultsSummary
associated with this Stage resultgetChainResult
in interface ChainStageResult
public void setChainResult(@NotNull @NotNull ChainResultsSummary chainResult)
ChainStageResult
ChainResultsSummary
associated with this Stage resultsetChainResult
in interface ChainStageResult
@NotNull public @NotNull Set<BuildResultsSummary> getBuildResults()
ChainStageResult
BuildResultsSummary
with this Stage resultgetBuildResults
in interface ChainStageResult
@NotNull public @NotNull List<BuildResultsSummary> getSortedBuildResults()
ChainStageResult
BuildResultsSummary
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()
ChainStageResult
BuildResultsSummary
with this Stage resultgetFailedBuildResults
in interface ChainStageResult
@NotNull public @NotNull Collection<BuildResultsSummary> getSuccessfulBuildResults()
ChainStageResult
BuildResultsSummary
with this Stage resultgetSuccessfulBuildResults
in interface ChainStageResult
public void setBuildResults(@NotNull @NotNull Set<BuildResultsSummary> buildResults)
public boolean addBuildResult(@NotNull @NotNull BuildResultsSummary buildResult)
ChainStageResult
BuildResultsSummary
and sets the relationship to the ChainResultsSummary
addBuildResult
in interface ChainStageResult
public boolean removeBuildResult(@NotNull @NotNull BuildResultsSummary buildResult)
ChainStageResult
BuildResultsSummary
removeBuildResult
in interface ChainStageResult
public boolean isPending()
isPending
in interface ChainStageResult
public boolean isNotBuilt()
ChainStageResult
isNotBuilt
in interface ChainStageResult
public boolean isCompleted()
isCompleted
in interface ChainStageResult
public boolean isFinished()
isFinished
in interface ChainStageResult
public boolean isAllJobsExist()
isAllJobsExist
in interface ChainStageResult
public boolean isAllNotSuccessfulJobsExist()
isAllNotSuccessfulJobsExist
in interface ChainStageResult
public boolean isSuccessful()
isSuccessful
in interface ChainStageResult
public boolean isFailed()
isFailed
in interface ChainStageResult
public boolean isRunnable()
ChainStageResult
isRunnable
in interface ChainStageResult
public boolean isRestartable()
ChainStageResult
isRestartable
in interface ChainStageResult
public BuildState getState()
getState
in interface ChainStageResult
public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface ChainStageResult
public List<StageVariableContext> getManualVariablesEncrypted()
ChainStageResult
ChainStageResult.getManualVariables()
or ChainStageResult.addManualVariable(StageVariableContext)
instead.getManualVariablesEncrypted
in interface ChainStageResult
@NotNull public @NotNull List<StageVariableContext> getManualVariables()
ChainStageResult
getManualVariables
in interface ChainStageResult
public void addManualVariable(@NotNull @NotNull StageVariableContext stageVariableContext)
addManualVariable
in interface ChainStageResult
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.