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 |
---|---|
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.
|
ImmutableChain |
getImmutablePlan()
Gets the
ImmutablePlan that this result belongs 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 |
ImmutableChain |
getPlan()
Gets the
Plan that this result belongs directly belongs to |
PlanKey |
getPlanKey()
Full key of the plan.
|
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 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
|
com.google.common.collect.ImmutableList<VariableBaselineItem> |
getVariableContext() |
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, 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 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 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 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 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 ImmutableChain getImmutablePlan()
ImmutableResultsSummary
ImmutablePlan
that this result belongs directly belongs togetImmutablePlan
in interface ImmutableResultsSummary
@NotNull public ImmutableChain getPlan()
ImmutableResultsSummary
Plan
that this result belongs directly belongs togetPlan
in interface ImmutableResultsSummary
public boolean isNotRunYet()
ImmutableResultsSummary
isNotRunYet
in interface ImmutableResultsSummary
public boolean isMarkedForDeletion()
@NotNull public 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 String getChangesListSummary()
getChangesListSummary
in interface ImmutableResultsSummary
@NotNull public 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 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 PlanKey getPlanKey()
ImmutableResultsSummary
getPlanKey
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 List<RepositoryChangeset> getRepositoryChangesets()
getRepositoryChangesets
in interface ImmutableResultsSummary
public int getRestartCount()
ImmutableResultsSummary
getRestartCount
in interface ImmutableResultsSummary
@NotNull public List<ConsumedSubscription> getSubscriptions()
ImmutableResultsSummary
ConsumedSubscription
getSubscriptions
in interface ImmutableResultsSummary
@NotNull public List<VariableSubstitution> getSubstitutedVariables()
ImmutableResultsSummary
getSubstitutedVariables
in interface ImmutableResultsSummary
@NotNull public TestResultsSummary getTestResultsSummary()
getTestResultsSummary
in interface ImmutableResultsSummary
public Long getTimeToFix()
ImmutableResultsSummary
getTimeToFix
in interface ImmutableResultsSummary
@NotNull public TriggerReason getTriggerReason()
ImmutableResultsSummary
getTriggerReason
in interface ImmutableResultsSummary
@NotNull public List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs
in interface ImmutableResultsSummary
@NotNull public com.google.common.collect.ImmutableList<VariableBaselineItem> getVariableContext()
getVariableContext
in interface ImmutableResultsSummary
protected TriggerManager getTriggerManager()
getTriggerManager
in class BaseResultSummary
public MergeResultSummary getMergeResult()
ImmutableChainResultsSummary
getMergeResult
in interface ImmutableChainResultsSummary
@Nullable public Integer getFixedInResult()
ImmutableChainResultsSummary
getFixedInResult
in interface ImmutableChainResultsSummary
public Long getBuildAgentId()
ImmutableResultsSummary
getBuildAgentId
in interface ImmutableResultsSummary
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.