public class ChainResultsSummaryDocument extends BuildResultsSummaryDocument implements ChainResultsSummary
Modifier and Type | Field and Description |
---|---|
static IndexedEntityIntegerField |
FIELD_FIXED_IN |
static IndexedEntityLongField |
FIELD_QUEUE_DURATION |
static IndexedEntityIntegerField |
FIELD_SPECS_RESULT |
static IndexedEntityLongField |
FIELD_VCS_UPDATE_DURATION |
CUSTOM_DATA_MAP_KEYS_TO_INDEX, DOCTYPE_BUILD_RESULT, FIELD_ARTIFACTS, FIELD_AUTHORS, FIELD_AUTHORS_LINKED_USER_SUFFIX, FIELD_BUILD_AGENT_ID, FIELD_BUILD_ID, FIELD_BUILD_KEY, FIELD_BUILD_NUMBER, FIELD_BUILD_RESULT_ID, FIELD_COMPLETED_TIMESTAMP, FIELD_CUSTOM_DATA_PREFIX, FIELD_DELTA_STATE, FIELD_DOC_TYPE, FIELD_DURATION, FIELD_ID, FIELD_JIRA_ISSUE_KEY, FIELD_JIRA_ISSUE_KEY_FIXES, FIELD_JIRA_PROJECT_KEY, FIELD_LABELS, FIELD_LIFE_CYCLE_STATE, FIELD_PERMISSION_PLAN_ID, FIELD_PLAN_ID, FIELD_QUEUE_TIME, FIELD_STATE, FIELD_STORAGE_KEY, FIELD_TIMESTAMP, FIELD_TRIGGER_REASON_KEY, FIELD_TYPE, FIELD_VCS_REVISION_KEY, FIELD_VCS_UPDATE_TIME
buildState, cachedPlanManagerRef, decryptedSubstitutedVariablesReference, decryptedVariableContextLogsReference, lifeCycleState, markedForDeletion
DATE_FORMAT
CUSTOM_DATA_BUILD_KEY
getPlanKey
Constructor and Description |
---|
ChainResultsSummaryDocument(org.apache.lucene.document.Document doc,
ResultsSummaryManager resultsSummaryManager) |
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. |
long |
getQueueDuration()
Chain document stores this precalculated value for use in reports
|
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() |
long |
getVcsUpdateDuration()
Chain document stores this precalculated value for use in reports
|
boolean |
isContinuable()
Indicates that
Chain execution has been stopped on manual stage and is waiting for user action |
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 chainContinuable) |
void |
setFixedInResult(Integer fixedInBuild)
Set the result that this result was fixed in.
|
void |
setMergeResult(MergeResultSummary mergeResult)
Note: this API is experimental.
|
void |
setSpecsResult(boolean specsResult) |
clearResultVariables, compareTo, equals, getArtifactLinks, getChainResultsSummary, getExtraBuildResultsData, getFilteredTestResults, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getPlanName, getProducedArtifactLinks, getQueueTime, getUniqueAuthors, getVcsUpdateTime, hashCode, isMarkedForDeletion, isNotRunYet, resetTestClassResults, setChainResultsSummary, setMarkedForDeletion, setQueueTime, setVcsUpdateTime
addVariableContextItem, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildDate, getBuildKey, getBuildNumber, getBuildResultKey, getBuildState, getChangesListSummary, getCustomBuildData, getCustomBuildDataRows, getDeltaState, getDiscriminator, getDuration, getFormatVersion, getLifeCycleState, getLogSize, getPlanKey, getProcessingDuration, getReasonSummary, getRepositoryChangesets, getRestartCount, getResultVariables, getStageResultId, getSubscriptions, getSubstitutedVariables, getSubstitutedVariablesEncrypted, getTestClassResults, getTestResultsSummary, getTimeToFix, getTriggerManager, getTriggerReason, getTriggerReasonKey, getVariableContextBaseline, getVariableContextBaselineId, getVariableContextLogs, getVariableContextLogsEncrypted, incrementRestartCount, isCustomBuild, isOnceOff, isRebuild, setArtifactLinks, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setBuildKey, setBuildNumber, setBuildState, setComments, setCustomBuild, setCustomBuildData, setDeltaState, setDiscriminator, setDuration, setFormatVersion, setJiraIssues, setLabellings, setLifeCycleState, setLogSize, setOnceOff, setPlanKey, setPlanName, setProcessingDuration, setRebuild, setRestartCount, setStageResultId, setSubscriptions, setTestResultsSummary, setTimeToFix, setTriggerReason, setTriggerReasonKey, setVariableContextBaseline, setVariableContextLogsEncrypted, toString, updateCustomDataEntry, updateFormatVersion, updateLifeCycleState
createChangeListSummary, getArtifactLinksThatExist, getBuildTime, getCommits, getDurationDescription, getFixingJiraIssues, getManuallyOverriddenVariables, getPlanResultKey, getProcessingDurationDescription, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getStatDate, getTestSummary, hasChanges, hasComments, 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
setMarkedForDeletion
setId
getId
isMarkedForDeletion
getArtifactLinks, getArtifactLinksThatExist, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getBuildTime, getChangesListSummary, getCommits, getCustomBuildData, getDeltaState, getDuration, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getLifeCycleState, getLogSize, getManuallyOverriddenVariables, getPlanKey, getPlanName, 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, isNotRunYet, isOnceOff, isPending, isQueued, isRebuild, isSuccessful, isWaiting
getBuildDate, getBuildNumber, getBuildState, getStatDate
compareTo
updateCustomDataEntry
getPlanResultKey
getResultVariables
public static final IndexedEntityIntegerField FIELD_FIXED_IN
public static final IndexedEntityLongField FIELD_QUEUE_DURATION
public static final IndexedEntityLongField FIELD_VCS_UPDATE_DURATION
public static final IndexedEntityIntegerField FIELD_SPECS_RESULT
public ChainResultsSummaryDocument(org.apache.lucene.document.Document doc, @NotNull ResultsSummaryManager resultsSummaryManager)
@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
getImmutableChain
in class BuildResultsSummaryDocument
@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
getFullPlanName
in class BuildResultsSummaryDocument
@NotNull public List<ChainStageResult> getStageResults()
ImmutableChainResultsSummary
ChainStageResult
's associated with this ChainResultsSummary
getStageResults
in interface ImmutableChainResultsSummary
@NotNull public ChainStageResult createStageResult(@NotNull ImmutableChainStage chainStage)
ChainResultsSummary
ChainStageResult
and associates it with the ChainResultsSummary
createStageResult
in interface ChainResultsSummary
chainStage
- the Stage related to resultpublic 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
@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 chainContinuable)
setContinuable
in interface ChainResultsSummary
public boolean isRestartable()
ImmutableChainResultsSummary
Chain
execution has been failed and could be restarted from failure placeisRestartable
in interface ImmutableChainResultsSummary
public Integer getFixedInResult()
ImmutableChainResultsSummary
getFixedInResult
in interface ImmutableChainResultsSummary
public void setFixedInResult(Integer fixedInBuild)
ChainResultsSummary
setFixedInResult
in interface ChainResultsSummary
public FilteredTestResults<TestClassResultDescriptor> getTestResults()
ImmutableChainResultsSummary
getTestResults
in interface ImmutableChainResultsSummary
public MergeResultSummary getMergeResult()
ImmutableChainResultsSummary
getMergeResult
in interface ImmutableChainResultsSummary
public void setMergeResult(@Nullable MergeResultSummary mergeResult)
ChainResultsSummary
setMergeResult
in interface ChainResultsSummary
public long getQueueDuration()
getQueueDuration
in interface BuildResultsSummary
getQueueDuration
in class BuildResultsSummaryDocument
public long getVcsUpdateDuration()
getVcsUpdateDuration
in interface BuildResultsSummary
getVcsUpdateDuration
in class BuildResultsSummaryDocument
public boolean isSpecsResult()
isSpecsResult
in interface ImmutableChainResultsSummary
public void setSpecsResult(boolean specsResult)
setSpecsResult
in interface ChainResultsSummary
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.