public class ImmutableResultsSummaryImpl extends BaseResultSummary implements ImmutableChainResultsSummary
DATE_FORMATCUSTOM_DATA_BUILD_KEY| Constructor and Description | 
|---|
ImmutableResultsSummaryImpl(ChainResultsSummary summary,
                           TriggerManager triggerManager,
                           ImmutablePlanManager immutablePlanManager,
                           CachedPlanManager cachedPlanManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
List<ArtifactLink> | 
getArtifactLinks()
Returns all artifacts associated with this build. 
 | 
Long | 
getBuildAgentId()
The id of the latest agent that built the result 
 | 
Date | 
getBuildCancelledDate()
When the build was cancelled 
 | 
Date | 
getBuildCompletedDate()
When the build finished 
 | 
Date | 
getBuildDate()
When the build was executed 
 | 
int | 
getBuildNumber()
Get build number 
 | 
BuildState | 
getBuildState()
Build state. 
 | 
String | 
getChangesListSummary()  | 
Map<String,String> | 
getCustomBuildData()
Custom data map to store random metadata about the build 
 | 
DeltaState | 
getDeltaState()
Gets the  
DeltaState of the summary. | 
long | 
getDuration()
Duration of the build in milliseconds 
 | 
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 directly belongs to. | 
Set<LinkedJiraIssue> | 
getJiraIssues()
Returns all the JIRA issues linked to this build result 
 | 
List<Labelling> | 
getLabellings()
Tags / labels associated with the build 
 | 
LifeCycleState | 
getLifeCycleState()  | 
Long | 
getLogSize()
Returns the size of log associated with this result. 
 | 
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. | 
PlanKey | 
getPlanKey()
Full key of the plan. 
 | 
String | 
getPlanName()  | 
long | 
getProcessingDuration()
Duration of actual build processing in miliseconds 
 | 
Date | 
getQueueTime()
When the build queued 
 | 
String | 
getReasonSummary()  | 
List<RepositoryChangeset> | 
getRepositoryChangesets()  | 
int | 
getRestartCount()
Return the number of build restart attempts 
 | 
List<ChainStageResult> | 
getStageResults()
Get all the  
ChainStageResult's associated with this ChainResultsSummary | 
List<ConsumedSubscription> | 
getSubscriptions()
Returns list of consumed artifact dependencies  
ConsumedSubscription | 
List<VariableSubstitution> | 
getSubstitutedVariables()
Returns immutable list of variables substituted during build execution 
 | 
FilteredTestResults<TestClassResultDescriptor> | 
getTestResults()
Get the helper class to provide filtered test lists for this chain result 
 | 
TestResultsSummary | 
getTestResultsSummary()  | 
Long | 
getTimeToFix()
A stored version of how long (milli seconds) it took for this build to fix a failure. 
 | 
int | 
getTotalJobCount()  | 
protected TriggerManager | 
getTriggerManager()  | 
TriggerReason | 
getTriggerReason()
Why the build was was triggered 
 | 
List<VariableContextSnapshot> | 
getVariableContextLogs()  | 
boolean | 
isContinuable()
Indicates that  
Chain execution has been stopped on manual stage and is waiting for user action | 
boolean | 
isCustomBuild()
Indicates that this result was run with custom variables (some of the variables were overwritten) - used to display indicator in UI 
 | 
boolean | 
isMarkedForDeletion()  | 
boolean | 
isNotRunYet()
Tells whether this result belongs to a job that will run when next manual stage is kicked off 
 | 
boolean | 
isOnceOff()
Indicates that this result was run with custom revision and should be considered as 'once-off' when calculating telemetry and other stuff 
 | 
boolean | 
isRebuild()
Indicates that this result was rebuild via "re-run this build" action. 
 | 
boolean | 
isRestartable()
Indicates that  
Chain execution has been failed and could be restarted from failure place | 
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, isWaitingclone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetArtifactLinksThatExist, getBuildTime, getCommits, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getLabelNames, getManuallyOverriddenVariables, getPlanResultKey, getProcessingDurationDescription, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getTestSummary, getUniqueAuthors, hasChanges, hasComments, isActive, isFailed, isFinished, isInProgress, isNotBuilt, isPending, isQueued, isSuccessful, isWaitinggetIdgetStatDatecompareTosetIdpublic ImmutableResultsSummaryImpl(ChainResultsSummary summary, TriggerManager triggerManager, ImmutablePlanManager immutablePlanManager, CachedPlanManager cachedPlanManager)
@NotNull public List<ChainStageResult> getStageResults()
ImmutableChainResultsSummaryChainStageResult's associated with this ChainResultsSummarygetStageResults in interface ImmutableChainResultsSummarypublic FilteredTestResults<TestClassResultDescriptor> getTestResults()
ImmutableChainResultsSummarygetTestResults in interface ImmutableChainResultsSummary@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 boolean isRestartable()
ImmutableChainResultsSummaryChain execution has been failed and could be restarted from failure placeisRestartable in interface ImmutableChainResultsSummarypublic boolean isOnceOff()
ImmutableResultsSummaryisOnceOff in interface ImmutableResultsSummarypublic boolean isCustomBuild()
ImmutableResultsSummaryisCustomBuild in interface ImmutableResultsSummarypublic boolean isRebuild()
ImmutableResultsSummaryisRebuild in interface ImmutableResultsSummary@Nullable public Long getLogSize()
ImmutableResultsSummary
 For a BuildResultsSummary this method will return size of the log produced by the Job.
 
 For a ChainResultsSummary the returned value will be equal to the maximum log size produced by this
 Chain's Jobs.
getLogSize in interface ImmutableResultsSummary@NotNull public ImmutableChain getImmutablePlan()
ImmutableResultsSummaryImmutablePlan that this result 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 of this method when operating on job results.getImmutablePlan in interface ImmutableChainResultsSummarygetImmutablePlan in interface ImmutableResultsSummary@NotNull public ImmutableChain getImmutableChain()
ImmutableResultsSummaryImmutableChain that this result belongs to (directly or not)getImmutableChain in interface ImmutableResultsSummary@NotNull public Optional<ImmutableChain> getPlanIfExists()
ImmutableResultsSummaryImmutablePlan that this result directly belongs to.getPlanIfExists in interface ImmutableChainResultsSummarygetPlanIfExists in interface ImmutableResultsSummarypublic boolean isNotRunYet()
ImmutableResultsSummaryisNotRunYet in interface ImmutableResultsSummarypublic boolean isMarkedForDeletion()
@NotNull public List<ArtifactLink> getArtifactLinks()
ImmutableResultsSummarygetArtifactLinks in interface ImmutableResultsSummarypublic Date getBuildCancelledDate()
ImmutableResultsSummarygetBuildCancelledDate in interface ImmutableResultsSummarypublic Date getBuildCompletedDate()
ImmutableResultsSummarygetBuildCompletedDate in interface ImmutableResultsSummarypublic Date getBuildDate()
ResultStatisticsProvidergetBuildDate in interface ResultStatisticsProviderpublic int getBuildNumber()
ResultStatisticsProvidergetBuildNumber in interface ResultStatisticsProviderpublic BuildState getBuildState()
ResultStatisticsProvidergetBuildState in interface ResultStatisticsProvider@NotNull public String getChangesListSummary()
getChangesListSummary in interface ImmutableResultsSummary@NotNull public Map<String,String> getCustomBuildData()
ImmutableResultsSummarygetCustomBuildData in interface ImmutableResultsSummarypublic DeltaState getDeltaState()
ImmutableResultsSummaryDeltaState of the summary. It can be a build that fixes, breaks, failing, successful. Provides a status
 relative to the previous summary.getDeltaState in interface ImmutableResultsSummarypublic long getDuration()
ImmutableResultsSummarygetDuration in interface ImmutableResultsSummarygetDuration in interface ResultStatisticsProvider@NotNull public Set<LinkedJiraIssue> getJiraIssues()
ImmutableResultsSummarygetJiraIssues in interface ImmutableResultsSummarypublic List<Labelling> getLabellings()
ImmutableResultsSummarygetLabellings in interface ImmutableResultsSummarypublic LifeCycleState getLifeCycleState()
getLifeCycleState in interface ImmutableResultsSummary@NotNull public PlanKey getPlanKey()
ImmutableResultsSummarygetPlanKey in interface ImmutableResultsSummary@NotNull public String getFullPlanName()
getFullPlanName in interface ImmutableResultsSummary@NotNull public String getPlanName()
getPlanName in interface ImmutableResultsSummarypublic long getProcessingDuration()
ImmutableResultsSummarygetProcessingDuration in interface ImmutableResultsSummarygetProcessingDuration in interface ResultStatisticsProviderpublic Date getQueueTime()
ImmutableResultsSummarygetQueueTime in interface ImmutableResultsSummarypublic String getReasonSummary()
getReasonSummary in interface ImmutableResultsSummary@NotNull public List<RepositoryChangeset> getRepositoryChangesets()
getRepositoryChangesets in interface ImmutableResultsSummarypublic int getRestartCount()
ImmutableResultsSummarygetRestartCount in interface ImmutableResultsSummary@NotNull public List<ConsumedSubscription> getSubscriptions()
ImmutableResultsSummaryConsumedSubscriptiongetSubscriptions in interface ImmutableResultsSummary@NotNull public List<VariableSubstitution> getSubstitutedVariables()
ImmutableResultsSummarygetSubstitutedVariables in interface ImmutableResultsSummary@NotNull public TestResultsSummary getTestResultsSummary()
getTestResultsSummary in interface ImmutableResultsSummarypublic Long getTimeToFix()
ImmutableResultsSummarygetTimeToFix in interface ImmutableResultsSummary@NotNull public TriggerReason getTriggerReason()
ImmutableResultsSummarygetTriggerReason in interface ImmutableResultsSummary@NotNull public List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs in interface ImmutableResultsSummaryprotected TriggerManager getTriggerManager()
getTriggerManager in class BaseResultSummarypublic MergeResultSummary getMergeResult()
ImmutableChainResultsSummarygetMergeResult in interface ImmutableChainResultsSummary@Nullable public Integer getFixedInResult()
ImmutableChainResultsSummarygetFixedInResult in interface ImmutableChainResultsSummarypublic Long getBuildAgentId()
ImmutableResultsSummarygetBuildAgentId in interface ImmutableResultsSummaryCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.