public class ChainResultsSummaryImpl extends AbstractResultsSummary implements ChainResultsSummary
buildState, cachedPlanManagerRef, decryptedSubstitutedVariablesReference, decryptedVariableContextLogsReference, lifeCycleState, markedForDeletion
DATE_FORMAT
CUSTOM_DATA_BUILD_KEY
getPlanKey
Constructor and Description |
---|
ChainResultsSummaryImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
addStageResult(ChainStageResult chainStageResult)
Add a stage result
|
ChainStageResult |
createStageResult(ImmutableChainStage chainStage)
Create a new
ChainStageResult and associates it with the ChainResultsSummary |
List<BuildResultsSummary> |
getFailedJobResults()
Get a list of all failed job Results in this chain result
|
Integer |
getFixedInResult()
Get build result that this build was fixed in.
|
String |
getFullPlanName() |
ImmutableChain |
getImmutableChain()
Gets the
ImmutableChain that this result belongs to (directly or not) |
ImmutableChain |
getImmutablePlan()
Gets the
ImmutablePlan that this result belongs directly belongs to. |
MergeResultSummary |
getMergeResult()
Note: this API is experimental.
|
List<ResultsSummary> |
getOrderedJobResultSummaries()
Returns all jobs
ResultsSummary related to chain result summary
Summaries are ordered by stages |
Optional<ImmutableChain> |
getPlanIfExists()
Gets the
ImmutablePlan that this result directly belongs to. |
String |
getPlanName() |
List<ChainStageResult> |
getStageResults()
Get all the
ChainStageResult 's associated with this ChainResultsSummary |
FilteredTestResults<TestClassResultDescriptor> |
getTestResults()
Get the helper class to provide filtered test lists for this chain result
|
int |
getTotalJobCount() |
boolean |
isContinuable()
Indicates that
Chain execution has been stopped on manual stage and is waiting for user action |
boolean |
isMarkedForDeletion() |
boolean |
isNotRunYet()
Tells whether this result belongs to a job that will run when next manual stage is kicked off
|
boolean |
isRestartable()
Indicates that
Chain execution has been failed and could be restarted from failure place |
boolean |
isSpecsResult() |
boolean |
removeStageResult(ChainStageResult chainStageResult)
Remove a stage result
|
void |
setContinuable(boolean continuable) |
void |
setFixedInResult(Integer fixedInBuild)
Set the result that this result was fixed in.
|
void |
setMarkedForDeletion(boolean markedForDeletion) |
void |
setMergeResult(MergeResultSummary mergeResult)
Note: this API is experimental.
|
void |
setSpecsResult(boolean specsResult) |
void |
setStageResults(List<ChainStageResult> stageResults) |
addVariableContextItem, getArtifactLinks, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildDate, getBuildKey, getBuildNumber, getBuildResultKey, getBuildState, getChangesListSummary, getCustomBuildData, getCustomBuildDataRows, getDeltaState, getDiscriminator, getDuration, getFormatVersion, getJiraIssues, getLabellings, getLifeCycleState, getLogSize, getPlanKey, getProcessingDuration, getQueueTime, getReasonSummary, getRepositoryChangesets, getRestartCount, getResultVariables, getStageResultId, getSubscriptions, getSubstitutedVariables, getSubstitutedVariablesEncrypted, getTestClassResults, getTestResultsSummary, getTimeToFix, getTriggerManager, getTriggerReason, getTriggerReasonKey, getVariableContextBaseline, getVariableContextBaselineId, getVariableContextLogs, getVariableContextLogsEncrypted, incrementRestartCount, isCustomBuild, isOnceOff, isRebuild, resetTestClassResults, setArtifactLinks, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setBuildKey, setBuildNumber, setBuildState, setComments, setCustomBuild, setCustomBuildData, setDeltaState, setDiscriminator, setDuration, setFormatVersion, setJiraIssues, setLabellings, setLifeCycleState, setLogSize, setOnceOff, setPlanKey, setPlanName, setProcessingDuration, setQueueTime, setRebuild, setRestartCount, setStageResultId, setSubscriptions, setTestResultsSummary, setTimeToFix, setTriggerReason, setTriggerReasonKey, setVariableContextBaseline, setVariableContextLogsEncrypted, toString, updateCustomDataEntry, updateFormatVersion, updateLifeCycleState
compareTo, createChangeListSummary, equals, getArtifactLinksThatExist, getBuildTime, getCommits, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getLabelNames, getManuallyOverriddenVariables, getPlanResultKey, getProcessingDurationDescription, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getStatDate, getTestSummary, getUniqueAuthors, hasChanges, hasComments, hashCode, isActive, isFailed, isFinalized, isFinished, isInProgress, isNotBuilt, isPending, isQueued, isSuccessful, isWaiting
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
addVariableContextItem, getBuildKey, getBuildResultKey, getFormatVersion, getSubstitutedVariablesEncrypted, getVariableContextBaselineId, getVariableContextLogsEncrypted, incrementRestartCount, resetTestClassResults, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setCustomBuild, setDeltaState, setDuration, setLogSize, setOnceOff, setProcessingDuration, setQueueTime, setRebuild, setTestResultsSummary, setTimeToFix, setTriggerReason, updateFormatVersion, updateLifeCycleState
setId
getId
getArtifactLinks, getArtifactLinksThatExist, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildTime, getChangesListSummary, getCommits, getCustomBuildData, getDeltaState, getDuration, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getLifeCycleState, getLogSize, getManuallyOverriddenVariables, getPlanKey, getPlanResultKey, getProcessingDuration, getProcessingDurationDescription, getQueueTime, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getRepositoryChangesets, getRestartCount, getShortReasonSummary, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTestSummary, getTimeToFix, getTriggerReason, getUniqueAuthors, getVariableContextLogs, hasChanges, hasComments, isActive, isCustomBuild, isFailed, isFinished, isInProgress, isNotBuilt, isOnceOff, isPending, isQueued, isRebuild, isSuccessful, isWaiting
getBuildDate, getBuildNumber, getBuildState, getStatDate
compareTo
updateCustomDataEntry
getPlanResultKey
@NotNull public ImmutableChain getImmutablePlan()
ResultsSummary
ImmutablePlan
that this result belongs directly belongs to.
Since version 6.9 it is possible that ImmutableJob
no longer exists but its results do, therefore
it is recommended to use ImmutableResultsSummary.getPlanIfExists()
instead when operating on job results.getImmutablePlan
in interface ImmutableChainResultsSummary
getImmutablePlan
in interface ImmutableResultsSummary
getImmutablePlan
in interface ResultsSummary
getImmutablePlan
in class AbstractResultsSummary
@NotNull public ImmutableChain getImmutableChain()
ImmutableResultsSummary
ImmutableChain
that this result belongs to (directly or not)getImmutableChain
in interface ImmutableResultsSummary
@NotNull public Optional<ImmutableChain> getPlanIfExists()
ImmutableResultsSummary
ImmutablePlan
that this result directly belongs to.getPlanIfExists
in interface ImmutableChainResultsSummary
getPlanIfExists
in interface ImmutableResultsSummary
getPlanIfExists
in class AbstractResultsSummary
@NotNull public String getFullPlanName()
getFullPlanName
in interface ImmutableResultsSummary
@NotNull public String getPlanName()
getPlanName
in interface ImmutableResultsSummary
getPlanName
in class AbstractResultsSummary
@NotNull public ChainStageResult createStageResult(@NotNull ImmutableChainStage chainStage)
ChainResultsSummary
ChainStageResult
and associates it with the ChainResultsSummary
createStageResult
in interface ChainResultsSummary
chainStage
- the Stage related to result@NotNull public List<ChainStageResult> getStageResults()
ImmutableChainResultsSummary
ChainStageResult
's associated with this ChainResultsSummary
getStageResults
in interface ImmutableChainResultsSummary
public void setStageResults(@NotNull List<ChainStageResult> stageResults)
public boolean addStageResult(@NotNull ChainStageResult chainStageResult)
ChainResultsSummary
addStageResult
in interface ChainResultsSummary
public boolean removeStageResult(@NotNull ChainStageResult chainStageResult)
ChainResultsSummary
removeStageResult
in interface ChainResultsSummary
@NotNull public List<BuildResultsSummary> getFailedJobResults()
ImmutableChainResultsSummary
getFailedJobResults
in interface ImmutableChainResultsSummary
public int getTotalJobCount()
getTotalJobCount
in interface ImmutableChainResultsSummary
@Nullable public FilteredTestResults<TestClassResultDescriptor> getTestResults()
ImmutableChainResultsSummary
getTestResults
in interface ImmutableChainResultsSummary
@NotNull public List<ResultsSummary> getOrderedJobResultSummaries()
ImmutableChainResultsSummary
ResultsSummary
related to chain result summary
Summaries are ordered by stagesgetOrderedJobResultSummaries
in interface ImmutableChainResultsSummary
public boolean isContinuable()
ImmutableChainResultsSummary
Chain
execution has been stopped on manual stage and is waiting for user actionisContinuable
in interface ImmutableChainResultsSummary
public void setContinuable(boolean continuable)
setContinuable
in interface ChainResultsSummary
public boolean isRestartable()
ImmutableChainResultsSummary
Chain
execution has been failed and could be restarted from failure placeisRestartable
in interface ImmutableChainResultsSummary
public boolean isNotRunYet()
ImmutableResultsSummary
isNotRunYet
in interface ImmutableResultsSummary
public boolean isMarkedForDeletion()
isMarkedForDeletion
in interface ImmutableDeletable
public void setMarkedForDeletion(boolean markedForDeletion)
setMarkedForDeletion
in interface Deletable
public MergeResultSummary getMergeResult()
ImmutableChainResultsSummary
getMergeResult
in interface ImmutableChainResultsSummary
public void setMergeResult(MergeResultSummary mergeResult)
ChainResultsSummary
setMergeResult
in interface ChainResultsSummary
public Integer getFixedInResult()
ImmutableChainResultsSummary
getFixedInResult
in interface ImmutableChainResultsSummary
public void setFixedInResult(Integer fixedInBuild)
ChainResultsSummary
setFixedInResult
in interface ChainResultsSummary
public void setSpecsResult(boolean specsResult)
setSpecsResult
in interface ChainResultsSummary
public boolean isSpecsResult()
isSpecsResult
in interface ImmutableChainResultsSummary
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.