public interface ImmutableResultsSummary extends BambooIdProvider, ResultStatisticsProvider, Comparable<ImmutableResultsSummary>
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CUSTOM_DATA_BUILD_KEY  | 
| Modifier and Type | Method and Description | 
|---|---|
@NotNull Collection<ArtifactLink> | 
getArtifactLinks()
Returns all artifacts associated with this build. 
 | 
Collection<ArtifactLink> | 
getArtifactLinksThatExist()
Deprecated. 
 
since 4.3 
 | 
@Nullable Long | 
getBuildAgentId()
The id of the latest agent that built the result 
 | 
@Nullable AgentType | 
getBuildAgentType()
The type of the latest agent that built the result 
 | 
@Nullable Date | 
getBuildCancelledDate()
When the build was cancelled 
 | 
@Nullable Date | 
getBuildCompletedDate()
When the build finished 
 | 
String | 
getBuildTime()
Formatted buildDate. 
 | 
@NotNull String | 
getChangesListSummary()  | 
com.google.common.collect.ImmutableList<Commit> | 
getCommits()
List of commits associated with the build represented by this summary 
 | 
@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 String | 
getDurationDescription()
Returns the duration in a "pretty" format. 
 | 
@NotNull Set<LinkedJiraIssue> | 
getFixingJiraIssues()
Return JIRA issues that this build result summary fixes 
 | 
@NotNull String | 
getFullPlanName()  | 
@NotNull ImmutableChain | 
getImmutableChain()
Gets the  
ImmutableChain that this result belongs to (directly or not) | 
@NotNull ImmutablePlan | 
getImmutablePlan()
Gets the  
ImmutablePlan that this result directly belongs to. | 
Set<String> | 
getJiraIssueKeys()
Returns all the JIRA issue keys linked to this build result 
 | 
@NotNull Set<LinkedJiraIssue> | 
getJiraIssues()
Returns all the JIRA issues linked to this build result 
 | 
List<Labelling> | 
getLabellings()
Tags / labels associated with the build 
 | 
@NotNull List<String> | 
getLabelNames()
A shortcut method to get all of the label names from the labellings 
 | 
LifeCycleState | 
getLifeCycleState()  | 
@Nullable Long | 
getLogSize()
Returns the size of log associated with this result. 
 | 
List<VariableSubstitution> | 
getManuallyOverriddenVariables()
Deprecated. 
 
since 5.15 for internal use only, use  
ResultsSummaryVariableAccessor instead | 
@NotNull Optional<? extends ImmutablePlan> | 
getPlanIfExists()
Gets the  
ImmutablePlan that this result directly belongs to. | 
@NotNull PlanKey | 
getPlanKey()
Full key of the plan. 
 | 
@NotNull String | 
getPlanName()  | 
@NotNull PlanResultKey | 
getPlanResultKey()
Gets the  
PlanResultKey for this ImmutableResultsSummary | 
long | 
getProcessingDuration()
Duration of actual build processing in miliseconds 
 | 
String | 
getProcessingDurationDescription()
Returns the processing duration in a "pretty" format. 
 | 
@Nullable Date | 
getQueueTime()
When the build queued 
 | 
String | 
getReasonSummary()  | 
@NotNull Set<LinkedJiraIssue> | 
getRelatedJiraIssues()
Returns JIRA issues that are related to this build result. 
 | 
String | 
getRelativeBuildDate()  | 
String | 
getRelativeBuildDate(Date comparedTo)  | 
String | 
getRelativeBuildStartedDate()
Returns the relative started time (duration) compared to current date 
 | 
String | 
getRelativeBuildStartedDate(Date comparedTo)
Returns the relative started time (duration) compared to date passed as parameter 
 | 
String | 
getRelativeQueueDate()  | 
String | 
getRelativeQueueDate(Date comparedTo)  | 
@NotNull List<RepositoryChangeset> | 
getRepositoryChangesets()  | 
int | 
getRestartCount()
Return the number of build restart attempts 
 | 
String | 
getShortReasonSummary()  | 
@NotNull List<ConsumedSubscription> | 
getSubscriptions()
Returns list of consumed artifact dependencies  
ConsumedSubscription | 
@NotNull List<VariableSubstitution> | 
getSubstitutedVariables()
Deprecated. 
 
since 5.15 without replacement, returns empty list for any result created by Bamboo 5.15 or later 
 | 
@NotNull TestResultsSummary | 
getTestResultsSummary()  | 
@NotNull String | 
getTestSummary()  | 
@Nullable Long | 
getTimeToFix()
A stored version of how long (milli seconds) it took for this build to fix a failure. 
 | 
@NotNull TriggerReason | 
getTriggerReason()
Why the build was was triggered 
 | 
Set<Author> | 
getUniqueAuthors()
A shortcut method to get the unique set of authors contributing to this build. 
 | 
@NotNull List<VariableContextSnapshot> | 
getVariableContextLogs()
Deprecated. 
 
since 5.7 for internal use only, use  
ResultsSummaryVariableAccessor instead | 
boolean | 
hasChanges()
Whether a build had changes or not 
 | 
boolean | 
hasComments()
Deprecated. 
 
since 5.15 use  
CommentManager (or ctx.hasComments in Freemarker( | 
boolean | 
isActive()
Shortcut method to see if  
getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESS | 
boolean | 
isCustomBuild()
Indicates that this result was run with custom variables (some of the variables were overwritten) - used to display indicator in UI 
 | 
boolean | 
isFailed()
Shortcut method to see if  
ResultStatisticsProvider.getBuildState() is BuildState.FAILED | 
boolean | 
isFinished()
Shortcut method to see if  
getLifeCycleState() is LifeCycleState.FINISHED | 
boolean | 
isInProgress()
Shortcut method to see if  
getLifeCycleState() is LifeCycleState.IN_PROGRESS | 
boolean | 
isNotBuilt()
Shortcut method to see if  
getLifeCycleState() is LifeCycleState.NOT_BUILT | 
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 | 
isPending()
Shortcut method to see if  
getLifeCycleState() is LifeCycleState.PENDING | 
boolean | 
isQueued()
Shortcut method to see if  
getLifeCycleState() is LifeCycleState.QUEUED | 
boolean | 
isRebuild()
Indicates that this result was rebuild via "re-run this build" action. 
 | 
boolean | 
isSuccessful()
Shortcut method to see if  
ResultStatisticsProvider.getBuildState() is BuildState.SUCCESS | 
boolean | 
isWaiting()
 | 
getIdgetBuildDate, getBuildNumber, getBuildState, getStatDatecompareTostatic final String CUSTOM_DATA_BUILD_KEY
@NotNull @NotNull PlanResultKey getPlanResultKey()
PlanResultKey for this ImmutableResultsSummary@NotNull @NotNull ImmutablePlan getImmutablePlan()
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 getPlanIfExists() instead of this method when operating on job results.IllegalStateException - if the plan doesn't exist.@NotNull @NotNull Optional<? extends ImmutablePlan> getPlanIfExists()
ImmutablePlan that this result directly belongs to.@NotNull @NotNull ImmutableChain getImmutableChain()
ImmutableChain that this result belongs to (directly or not)IllegalStateException - if the plan doesn't exist.@NotNull @NotNull PlanKey getPlanKey()
@NotNull @NotNull TriggerReason getTriggerReason()
DeltaState getDeltaState()
DeltaState of the summary. It can be a build that fixes, breaks, failing, successful. Provides a status
 relative to the previous summary.boolean isOnceOff()
boolean isCustomBuild()
boolean isRebuild()
@Nullable @Nullable Long getLogSize()
 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.
long getDuration()
getDuration in interface ResultStatisticsProviderlong getProcessingDuration()
getProcessingDuration in interface ResultStatisticsProvider@Nullable @Nullable Date getBuildCancelledDate()
@Nullable @Nullable Date getBuildCompletedDate()
boolean isFailed()
ResultStatisticsProvider.getBuildState() is BuildState.FAILEDboolean isSuccessful()
ResultStatisticsProvider.getBuildState() is BuildState.SUCCESSboolean isPending()
getLifeCycleState() is LifeCycleState.PENDINGboolean isQueued()
getLifeCycleState() is LifeCycleState.QUEUEDboolean isInProgress()
getLifeCycleState() is LifeCycleState.IN_PROGRESSboolean isNotBuilt()
getLifeCycleState() is LifeCycleState.NOT_BUILTboolean isFinished()
getLifeCycleState() is LifeCycleState.FINISHEDboolean isWaiting()
boolean isActive()
getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESS@NotNull @NotNull Map<String,String> getCustomBuildData()
@NotNull @NotNull Set<LinkedJiraIssue> getJiraIssues()
@NotNull @NotNull Set<LinkedJiraIssue> getFixingJiraIssues()
@NotNull @NotNull Set<LinkedJiraIssue> getRelatedJiraIssues()
Set<String> getJiraIssueKeys()
@NotNull @NotNull List<RepositoryChangeset> getRepositoryChangesets()
@Deprecated boolean hasComments()
CommentManager (or ctx.hasComments in Freemarker(@NotNull @NotNull List<String> getLabelNames()
Set<Author> getUniqueAuthors()
boolean hasChanges()
@Nullable @Nullable Long getTimeToFix()
@NotNull @NotNull TestResultsSummary getTestResultsSummary()
@NotNull @NotNull String getDurationDescription()
String getProcessingDurationDescription()
String getShortReasonSummary()
String getReasonSummary()
String getRelativeBuildDate()
String getRelativeQueueDate()
String getRelativeBuildStartedDate()
@NotNull @NotNull String getTestSummary()
String getRelativeBuildStartedDate(Date comparedTo)
comparedTo - String getBuildTime()
@Nullable @Nullable Date getQueueTime()
@NotNull @NotNull Collection<ArtifactLink> getArtifactLinks()
@Deprecated Collection<ArtifactLink> getArtifactLinksThatExist()
LifeCycleState getLifeCycleState()
@NotNull @NotNull String getChangesListSummary()
@NotNull @NotNull List<ConsumedSubscription> getSubscriptions()
ConsumedSubscription@NotNull @Deprecated @NotNull List<VariableSubstitution> getSubstitutedVariables()
@Deprecated @NotNull @NotNull List<VariableContextSnapshot> getVariableContextLogs()
ResultsSummaryVariableAccessor instead@Deprecated List<VariableSubstitution> getManuallyOverriddenVariables()
ResultsSummaryVariableAccessor insteadint getRestartCount()
boolean isNotRunYet()
com.google.common.collect.ImmutableList<Commit> getCommits()
@Nullable @Nullable Long getBuildAgentId()
@Nullable @Nullable AgentType getBuildAgentType()
@NotNull @NotNull String getFullPlanName()
@NotNull @NotNull String getPlanName()
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.