public class ChainResultsSummaryDocument extends BuildResultsSummaryDocument implements ChainResultsSummary
Modifier and Type | Field and Description |
---|---|
static IndexedEntityIntegerField |
FIELD_FIXED_IN |
static IndexedEntityLongField |
FIELD_QUEUE_DURATION |
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_QUEUE_TIME, FIELD_STATE, FIELD_TIMESTAMP, FIELD_TRIGGER_REASON_KEY, FIELD_TYPE, FIELD_VCS_REVISION_KEY, FIELD_VCS_UPDATE_TIME
buildState, cachedPlanManagerRef, lifeCycleState, markedForDeletion, planManagerRef
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.
|
ImmutableChain |
getImmutablePlan()
Gets the
Plan 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 |
Chain |
getPlan()
Gets the
Plan that this result belongs 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 |
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.
|
compareTo, equals, getArtifactLinks, getChainResultsSummary, getExtraBuildResultsData, getFilteredTestResults, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getProducedArtifactLinks, getQueueTime, getUniqueAuthors, getVcsUpdateTime, hashCode, isMarkedForDeletion, isNotRunYet, resetTestClassResults, setChainResultsSummary, setMarkedForDeletion, setQueueTime, setVcsUpdateTime
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, getTestClassResults, getTestResultsSummary, getTimeToFix, getTriggerManager, getTriggerReason, getTriggerReasonKey, getVariableContext, getVariableContextBaseline, getVariableContextBaselineId, getVariableContextLogs, 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, setProcessingDuration, setRebuild, setRestartCount, setStageResultId, setSubscriptions, setSubstitutedVariables, setTestResultsSummary, setTimeToFix, setTriggerReason, setTriggerReasonKey, setVariableContextBaseline, setVariableContextLogs, 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
getBuildKey, getBuildResultKey, getFormatVersion, getVariableContextBaselineId, 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, getPlanResultKey, getProcessingDuration, getProcessingDurationDescription, getQueueTime, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getRepositoryChangesets, getRestartCount, getShortReasonSummary, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTestSummary, getTimeToFix, getTriggerReason, getUniqueAuthors, getVariableContext, 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 ChainResultsSummaryDocument(org.apache.lucene.document.Document doc, @NotNull ResultsSummaryManager resultsSummaryManager)
@NotNull public ImmutableChain getImmutablePlan()
ResultsSummary
Plan
that this result belongs directly belongs togetImmutablePlan
in interface ChainResultsSummary
getImmutablePlan
in interface ImmutableResultsSummary
getImmutablePlan
in interface ResultsSummary
getImmutablePlan
in class AbstractResultsSummary
@NotNull public Chain getPlan()
ResultsSummary
Plan
that this result belongs directly belongs togetPlan
in interface ChainResultsSummary
getPlan
in interface ImmutableResultsSummary
getPlan
in interface ResultsSummary
getPlan
in class AbstractResultsSummary
@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
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.