public class ImmutableResultsSummaryImpl extends BaseResultSummary implements ImmutableChainResultsSummary
DATE_FORMAT
CUSTOM_DATA_BUILD_KEY
Constructor and Description |
---|
ImmutableResultsSummaryImpl(ChainResultsSummary summary,
TriggerManager triggerManager,
ImmutablePlanManager immutablePlanManager,
CachedPlanManager cachedPlanManager) |
Modifier and Type | Method and Description |
---|---|
@NotNull 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.
|
@NotNull String |
getChangesListSummary() |
@NotNull 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
|
@NotNull List<BuildResultsSummary> |
getFailedJobResults()
Get a list of all failed job Results in this chain result
|
@Nullable Integer |
getFixedInResult()
Get build result that this build was fixed in.
|
@NotNull String |
getFullPlanName() |
@NotNull ImmutableChain |
getImmutableChain()
Gets the
ImmutableChain that this result belongs to (directly or not) |
@NotNull ImmutableChain |
getImmutablePlan()
Gets the
ImmutablePlan that this result directly belongs to. |
@NotNull Set<LinkedJiraIssue> |
getJiraIssues()
Returns all the JIRA issues linked to this build result
|
List<Labelling> |
getLabellings()
Tags / labels associated with the build
|
LifeCycleState |
getLifeCycleState() |
@Nullable Long |
getLogSize()
Returns the size of log associated with this result.
|
MergeResultSummary |
getMergeResult()
Note: this API is experimental.
|
@NotNull List<ResultsSummary> |
getOrderedJobResultSummaries()
Returns all jobs
ResultsSummary related to chain result summary
Summaries are ordered by stages |
@NotNull Optional<ImmutableChain> |
getPlanIfExists()
Gets the
ImmutablePlan that this result directly belongs to. |
@NotNull PlanKey |
getPlanKey()
Full key of the plan.
|
@NotNull String |
getPlanName() |
long |
getProcessingDuration()
Duration of actual build processing in miliseconds
|
Date |
getQueueTime()
When the build queued
|
String |
getReasonSummary() |
@NotNull List<RepositoryChangeset> |
getRepositoryChangesets() |
int |
getRestartCount()
Return the number of build restart attempts
|
@NotNull List<ChainStageResult> |
getStageResults()
Get all the
ChainStageResult 's associated with this ChainResultsSummary |
@NotNull List<ConsumedSubscription> |
getSubscriptions()
Returns list of consumed artifact dependencies
ConsumedSubscription |
@NotNull 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
|
@NotNull 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() |
@NotNull TriggerReason |
getTriggerReason()
Why the build was was triggered
|
@NotNull 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 |
boolean |
isSpecsResult() |
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, toString, wait, wait, wait
getArtifactLinksThatExist, 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, isWaiting
getId
getStatDate
compareTo
setId
public ImmutableResultsSummaryImpl(ChainResultsSummary summary, TriggerManager triggerManager, ImmutablePlanManager immutablePlanManager, CachedPlanManager cachedPlanManager)
@NotNull public @NotNull List<ChainStageResult> getStageResults()
ImmutableChainResultsSummary
ChainStageResult
's associated with this ChainResultsSummary
getStageResults
in interface ImmutableChainResultsSummary
public FilteredTestResults<TestClassResultDescriptor> getTestResults()
ImmutableChainResultsSummary
getTestResults
in interface ImmutableChainResultsSummary
@NotNull public @NotNull List<BuildResultsSummary> getFailedJobResults()
ImmutableChainResultsSummary
getFailedJobResults
in interface ImmutableChainResultsSummary
public int getTotalJobCount()
getTotalJobCount
in interface ImmutableChainResultsSummary
@NotNull public @NotNull 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 boolean isRestartable()
ImmutableChainResultsSummary
Chain
execution has been failed and could be restarted from failure placeisRestartable
in interface ImmutableChainResultsSummary
public boolean isOnceOff()
ImmutableResultsSummary
isOnceOff
in interface ImmutableResultsSummary
public boolean isCustomBuild()
ImmutableResultsSummary
isCustomBuild
in interface ImmutableResultsSummary
public boolean isRebuild()
ImmutableResultsSummary
isRebuild
in interface ImmutableResultsSummary
@Nullable public @Nullable 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 Job
s.
getLogSize
in interface ImmutableResultsSummary
@NotNull public @NotNull ImmutableChain getImmutablePlan()
ImmutableResultsSummary
ImmutablePlan
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 ImmutableChainResultsSummary
getImmutablePlan
in interface ImmutableResultsSummary
@NotNull public @NotNull ImmutableChain getImmutableChain()
ImmutableResultsSummary
ImmutableChain
that this result belongs to (directly or not)getImmutableChain
in interface ImmutableResultsSummary
@NotNull public @NotNull Optional<ImmutableChain> getPlanIfExists()
ImmutableResultsSummary
ImmutablePlan
that this result directly belongs to.getPlanIfExists
in interface ImmutableChainResultsSummary
getPlanIfExists
in interface ImmutableResultsSummary
public boolean isNotRunYet()
ImmutableResultsSummary
isNotRunYet
in interface ImmutableResultsSummary
public boolean isMarkedForDeletion()
@NotNull public @NotNull List<ArtifactLink> getArtifactLinks()
ImmutableResultsSummary
getArtifactLinks
in interface ImmutableResultsSummary
public Date getBuildCancelledDate()
ImmutableResultsSummary
getBuildCancelledDate
in interface ImmutableResultsSummary
public Date getBuildCompletedDate()
ImmutableResultsSummary
getBuildCompletedDate
in interface ImmutableResultsSummary
public Date getBuildDate()
ResultStatisticsProvider
getBuildDate
in interface ResultStatisticsProvider
public int getBuildNumber()
ResultStatisticsProvider
getBuildNumber
in interface ResultStatisticsProvider
public BuildState getBuildState()
ResultStatisticsProvider
getBuildState
in interface ResultStatisticsProvider
@NotNull public @NotNull String getChangesListSummary()
getChangesListSummary
in interface ImmutableResultsSummary
@NotNull public @NotNull Map<String,String> getCustomBuildData()
ImmutableResultsSummary
getCustomBuildData
in interface ImmutableResultsSummary
public DeltaState getDeltaState()
ImmutableResultsSummary
DeltaState
of the summary. It can be a build that fixes, breaks, failing, successful. Provides a status
relative to the previous summary.getDeltaState
in interface ImmutableResultsSummary
public long getDuration()
ImmutableResultsSummary
getDuration
in interface ImmutableResultsSummary
getDuration
in interface ResultStatisticsProvider
@NotNull public @NotNull Set<LinkedJiraIssue> getJiraIssues()
ImmutableResultsSummary
getJiraIssues
in interface ImmutableResultsSummary
public List<Labelling> getLabellings()
ImmutableResultsSummary
getLabellings
in interface ImmutableResultsSummary
public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface ImmutableResultsSummary
@NotNull public @NotNull PlanKey getPlanKey()
ImmutableResultsSummary
getPlanKey
in interface ImmutableResultsSummary
@NotNull public @NotNull String getFullPlanName()
getFullPlanName
in interface ImmutableResultsSummary
@NotNull public @NotNull String getPlanName()
getPlanName
in interface ImmutableResultsSummary
public long getProcessingDuration()
ImmutableResultsSummary
getProcessingDuration
in interface ImmutableResultsSummary
getProcessingDuration
in interface ResultStatisticsProvider
public Date getQueueTime()
ImmutableResultsSummary
getQueueTime
in interface ImmutableResultsSummary
public String getReasonSummary()
getReasonSummary
in interface ImmutableResultsSummary
@NotNull public @NotNull List<RepositoryChangeset> getRepositoryChangesets()
getRepositoryChangesets
in interface ImmutableResultsSummary
public int getRestartCount()
ImmutableResultsSummary
getRestartCount
in interface ImmutableResultsSummary
@NotNull public @NotNull List<ConsumedSubscription> getSubscriptions()
ImmutableResultsSummary
ConsumedSubscription
getSubscriptions
in interface ImmutableResultsSummary
@NotNull public @NotNull List<VariableSubstitution> getSubstitutedVariables()
ImmutableResultsSummary
getSubstitutedVariables
in interface ImmutableResultsSummary
@NotNull public @NotNull TestResultsSummary getTestResultsSummary()
getTestResultsSummary
in interface ImmutableResultsSummary
public Long getTimeToFix()
ImmutableResultsSummary
getTimeToFix
in interface ImmutableResultsSummary
@NotNull public @NotNull TriggerReason getTriggerReason()
ImmutableResultsSummary
getTriggerReason
in interface ImmutableResultsSummary
@NotNull public @NotNull List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs
in interface ImmutableResultsSummary
protected TriggerManager getTriggerManager()
getTriggerManager
in class BaseResultSummary
public MergeResultSummary getMergeResult()
ImmutableChainResultsSummary
getMergeResult
in interface ImmutableChainResultsSummary
@Nullable public @Nullable Integer getFixedInResult()
ImmutableChainResultsSummary
getFixedInResult
in interface ImmutableChainResultsSummary
public Long getBuildAgentId()
ImmutableResultsSummary
getBuildAgentId
in interface ImmutableResultsSummary
public boolean isSpecsResult()
isSpecsResult
in interface ImmutableChainResultsSummary
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.