@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, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
@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 DescriptionProvider
getName
in interface NameProvider
public void setName(@NotNull String name)
setName
in interface Describable
@Nullable public String getDescription()
getDescription
in interface DescriptionProvider
public void setDescription(@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 ChainResultsSummary getChainResult()
ChainStageResult
ChainResultsSummary
associated with this Stage resultgetChainResult
in interface ChainStageResult
public void setChainResult(@NotNull ChainResultsSummary chainResult)
ChainStageResult
ChainResultsSummary
associated with this Stage resultsetChainResult
in interface ChainStageResult
@NotNull public Set<BuildResultsSummary> getBuildResults()
ChainStageResult
BuildResultsSummary
with this Stage resultgetBuildResults
in interface ChainStageResult
@NotNull public 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 Collection<BuildResultsSummary> getFailedBuildResults()
ChainStageResult
BuildResultsSummary
with this Stage resultgetFailedBuildResults
in interface ChainStageResult
@NotNull public Collection<BuildResultsSummary> getSuccessfulBuildResults()
ChainStageResult
BuildResultsSummary
with this Stage resultgetSuccessfulBuildResults
in interface ChainStageResult
public void setBuildResults(@NotNull Set<BuildResultsSummary> buildResults)
public boolean addBuildResult(@NotNull BuildResultsSummary buildResult)
ChainStageResult
BuildResultsSummary
and sets the relationship to the ChainResultsSummary
addBuildResult
in interface ChainStageResult
public boolean removeBuildResult(@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 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> getManualVariables()
ChainStageResult
getManualVariables
in interface ChainStageResult
public void setManualVariables(@NotNull List<StageVariableContext> manualVariables)
setManualVariables
in interface ChainStageResult
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.