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_STORAGE_KEY, FIELD_TIMESTAMP, FIELD_TRIGGER_REASON_KEY, FIELD_TYPE, FIELD_VCS_REVISION_KEY, FIELD_VCS_UPDATE_TIMEbuildState, cachedPlanManagerRef, lifeCycleState, markedForDeletionDATE_FORMATCUSTOM_DATA_BUILD_KEYgetPlanKey| 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 |
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, getPlanName, getProducedArtifactLinks, getQueueTime, getUniqueAuthors, getVcsUpdateTime, hashCode, isMarkedForDeletion, isNotRunYet, resetTestClassResults, setChainResultsSummary, setMarkedForDeletion, setQueueTime, setVcsUpdateTimegetBuildAgentId, 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, setPlanName, setProcessingDuration, setRebuild, setRestartCount, setStageResultId, setSubscriptions, setSubstitutedVariables, setTestResultsSummary, setTimeToFix, setTriggerReason, setTriggerReasonKey, setVariableContextBaseline, setVariableContextLogs, toString, updateCustomDataEntry, updateFormatVersion, updateLifeCycleStatecreateChangeListSummary, 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, isWaitingclone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDatefinalize, getClass, notify, notifyAll, wait, wait, waitgetBuildKey, getBuildResultKey, getFormatVersion, getVariableContextBaselineId, incrementRestartCount, resetTestClassResults, setBuildAgentId, setBuildCancelledDate, setBuildCompletedDate, setBuildDate, setCustomBuild, setDeltaState, setDuration, setLogSize, setOnceOff, setProcessingDuration, setQueueTime, setRebuild, setTestResultsSummary, setTimeToFix, setTriggerReason, updateFormatVersion, updateLifeCycleStatesetMarkedForDeletionsetIdgetIdisMarkedForDeletiongetArtifactLinks, 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, getVariableContext, getVariableContextLogs, hasChanges, hasComments, isActive, isCustomBuild, isFailed, isFinished, isInProgress, isNotBuilt, isNotRunYet, isOnceOff, isPending, isQueued, isRebuild, isSuccessful, isWaitinggetBuildDate, getBuildNumber, getBuildState, getStatDatecompareToupdateCustomDataEntrygetPlanResultKeygetResultVariablespublic 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()
ResultsSummaryImmutablePlan 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 ImmutableChainResultsSummarygetImmutablePlan in interface ImmutableResultsSummarygetImmutablePlan in interface ResultsSummarygetImmutablePlan in class AbstractResultsSummary@NotNull public ImmutableChain getImmutableChain()
ImmutableResultsSummaryImmutableChain that this result belongs to (directly or not)getImmutableChain in interface ImmutableResultsSummarygetImmutableChain in class BuildResultsSummaryDocument@NotNull public Optional<ImmutableChain> getPlanIfExists()
ImmutableResultsSummaryImmutablePlan that this result directly belongs to.getPlanIfExists in interface ImmutableChainResultsSummarygetPlanIfExists in interface ImmutableResultsSummarygetPlanIfExists in class AbstractResultsSummary@NotNull public String getFullPlanName()
getFullPlanName in interface ImmutableResultsSummarygetFullPlanName in class BuildResultsSummaryDocument@NotNull public List<ChainStageResult> getStageResults()
ImmutableChainResultsSummaryChainStageResult's associated with this ChainResultsSummarygetStageResults in interface ImmutableChainResultsSummary@NotNull public ChainStageResult createStageResult(@NotNull ImmutableChainStage chainStage)
ChainResultsSummaryChainStageResult and associates it with the ChainResultsSummarycreateStageResult in interface ChainResultsSummarychainStage - the Stage related to resultpublic boolean addStageResult(@NotNull
ChainStageResult chainStageResult)
ChainResultsSummaryaddStageResult in interface ChainResultsSummarypublic boolean removeStageResult(@NotNull
ChainStageResult chainStageResult)
ChainResultsSummaryremoveStageResult in interface ChainResultsSummary@NotNull public List<BuildResultsSummary> getFailedJobResults()
ImmutableChainResultsSummarygetFailedJobResults in interface ImmutableChainResultsSummarypublic int getTotalJobCount()
getTotalJobCount in interface ImmutableChainResultsSummary@NotNull public List<ResultsSummary> getOrderedJobResultSummaries()
ImmutableChainResultsSummaryResultsSummary related to chain result summary
Summaries are ordered by stagesgetOrderedJobResultSummaries in interface ImmutableChainResultsSummarypublic boolean isContinuable()
ImmutableChainResultsSummaryChain execution has been stopped on manual stage and is waiting for user actionisContinuable in interface ImmutableChainResultsSummarypublic void setContinuable(boolean chainContinuable)
setContinuable in interface ChainResultsSummarypublic boolean isRestartable()
ImmutableChainResultsSummaryChain execution has been failed and could be restarted from failure placeisRestartable in interface ImmutableChainResultsSummarypublic Integer getFixedInResult()
ImmutableChainResultsSummarygetFixedInResult in interface ImmutableChainResultsSummarypublic void setFixedInResult(Integer fixedInBuild)
ChainResultsSummarysetFixedInResult in interface ChainResultsSummarypublic FilteredTestResults<TestClassResultDescriptor> getTestResults()
ImmutableChainResultsSummarygetTestResults in interface ImmutableChainResultsSummarypublic MergeResultSummary getMergeResult()
ImmutableChainResultsSummarygetMergeResult in interface ImmutableChainResultsSummarypublic void setMergeResult(@Nullable
MergeResultSummary mergeResult)
ChainResultsSummarysetMergeResult in interface ChainResultsSummarypublic long getQueueDuration()
getQueueDuration in interface BuildResultsSummarygetQueueDuration in class BuildResultsSummaryDocumentpublic long getVcsUpdateDuration()
getVcsUpdateDuration in interface BuildResultsSummarygetVcsUpdateDuration in class BuildResultsSummaryDocumentCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.