@Entity public class ChainStageResultImpl extends BambooEntityObject implements ChainStageResult
| Constructor and Description |
|---|
ChainStageResultImpl() |
ChainStageResultImpl(String name,
String description,
boolean manual,
boolean finalStage,
ChainResultsSummary chainResult) |
ChainStageResultImpl(String name,
String description,
boolean manual,
ChainResultsSummary chainResult)
Deprecated.
|
| Modifier 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 |
String |
getDescription() |
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.
|
String |
getName() |
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 |
setBuildResults(Set<BuildResultsSummary> buildResults) |
void |
setChainResult(ChainResultsSummary chainResult)
Sets the
ChainResultsSummary associated with this Stage result |
void |
setDescription(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 |
setManualVariables(List<StageVariableContext> manualVariables) |
void |
setName(String name) |
void |
setProcessingDuration(long processingDuration) |
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitsetIdgetId@Deprecated public ChainStageResultImpl(String name, String description, boolean manual, ChainResultsSummary chainResult)
ChainStageResultImpl(String, String, boolean, boolean, ChainResultsSummary)name - description - manual - chainResult - public ChainStageResultImpl(String name, String description, boolean manual, boolean finalStage, ChainResultsSummary chainResult)
public ChainStageResultImpl()
@NotNull public String getName()
getName in interface DescriptionProvidergetName in interface NameProviderpublic void setName(@NotNull
String name)
setName in interface Describable@Nullable public String getDescription()
getDescription in interface DescriptionProviderpublic void setDescription(@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 ChainResultsSummary getChainResult()
ChainStageResultChainResultsSummary associated with this Stage resultgetChainResult in interface ChainStageResultpublic void setChainResult(@NotNull
ChainResultsSummary chainResult)
ChainStageResultChainResultsSummary associated with this Stage resultsetChainResult in interface ChainStageResult@NotNull public Set<BuildResultsSummary> getBuildResults()
ChainStageResultBuildResultsSummary with this Stage resultgetBuildResults in interface ChainStageResult@NotNull public 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 Collection<BuildResultsSummary> getFailedBuildResults()
ChainStageResultBuildResultsSummary with this Stage resultgetFailedBuildResults in interface ChainStageResult@NotNull public Collection<BuildResultsSummary> getSuccessfulBuildResults()
ChainStageResultBuildResultsSummary with this Stage resultgetSuccessfulBuildResults in interface ChainStageResultpublic void setBuildResults(@NotNull
Set<BuildResultsSummary> buildResults)
public boolean addBuildResult(@NotNull
BuildResultsSummary buildResult)
ChainStageResultBuildResultsSummary and sets the relationship to the ChainResultsSummaryaddBuildResult in interface ChainStageResultpublic boolean removeBuildResult(@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 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> getManualVariables()
ChainStageResultgetManualVariables in interface ChainStageResultpublic void setManualVariables(@NotNull
List<StageVariableContext> manualVariables)
setManualVariables in interface ChainStageResultCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.