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 |
---|---|
Collection<ArtifactLink> |
getArtifactLinks()
Returns all artifacts associated with this build.
|
Collection<ArtifactLink> |
getArtifactLinksThatExist()
Deprecated.
since 4.3
|
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
|
String |
getBuildTime()
Formatted buildDate.
|
String |
getChangesListSummary() |
com.google.common.collect.ImmutableList<Commit> |
getCommits()
List of commits associated with the build represented by this summary
|
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
|
String |
getDurationDescription()
Returns the duration in a "pretty" format.
|
Set<LinkedJiraIssue> |
getFixingJiraIssues()
Return JIRA issues that this build result summary fixes
|
ImmutablePlan |
getImmutablePlan()
Gets the
ImmutablePlan that this result belongs directly belongs to |
Set<String> |
getJiraIssueKeys()
Returns all the JIRA issue keys linked to this build result
|
Set<LinkedJiraIssue> |
getJiraIssues()
Returns all the JIRA issues linked to this build result
|
List<Labelling> |
getLabellings()
Tags / labels associated with the build
|
List<String> |
getLabelNames()
A shortcut method to get all of the label names from the labellings
|
LifeCycleState |
getLifeCycleState() |
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 |
ImmutablePlan |
getPlan()
Deprecated.
since 5.0 use
getImmutablePlan() |
PlanKey |
getPlanKey()
Full key of the plan.
|
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.
|
Date |
getQueueTime()
When the build queued
|
String |
getReasonSummary() |
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) |
List<RepositoryChangeset> |
getRepositoryChangesets() |
int |
getRestartCount()
Return the number of build restart attempts
|
String |
getShortReasonSummary() |
List<ConsumedSubscription> |
getSubscriptions()
Returns list of consumed artifact dependencies
ConsumedSubscription |
List<VariableSubstitution> |
getSubstitutedVariables()
Deprecated.
since 5.15 without replacement, returns empty list for any result created by Bamboo 5.15 or later
|
TestResultsSummary |
getTestResultsSummary() |
String |
getTestSummary() |
Long |
getTimeToFix()
A stored version of how long (milli seconds) it took for this build to fix a failure.
|
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.
|
com.google.common.collect.ImmutableList<VariableBaselineItem> |
getVariableContext()
Deprecated.
since 5.7 for internal use only, use
ResultsSummaryVariableAccessor instead |
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()
|
getId
getBuildDate, getBuildNumber, getBuildState, getStatDate
compareTo
static final String CUSTOM_DATA_BUILD_KEY
@NotNull PlanResultKey getPlanResultKey()
PlanResultKey
for this ImmutableResultsSummary
@NotNull ImmutablePlan getImmutablePlan()
ImmutablePlan
that this result belongs directly belongs toIllegalStateException
- if the plan doesn't exist.@NotNull @Deprecated ImmutablePlan getPlan()
getImmutablePlan()
Plan
that this result belongs directly belongs toIllegalStateException
- if the plan doesn't exist.@NotNull PlanKey getPlanKey()
@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 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 Job
s.
long getDuration()
getDuration
in interface ResultStatisticsProvider
long getProcessingDuration()
getProcessingDuration
in interface ResultStatisticsProvider
@Nullable Date getBuildCancelledDate()
@Nullable Date getBuildCompletedDate()
boolean isFailed()
ResultStatisticsProvider.getBuildState()
is BuildState.FAILED
boolean isSuccessful()
ResultStatisticsProvider.getBuildState()
is BuildState.SUCCESS
boolean isPending()
getLifeCycleState()
is LifeCycleState.PENDING
boolean isQueued()
getLifeCycleState()
is LifeCycleState.QUEUED
boolean isInProgress()
getLifeCycleState()
is LifeCycleState.IN_PROGRESS
boolean isNotBuilt()
getLifeCycleState()
is LifeCycleState.NOT_BUILT
boolean isFinished()
getLifeCycleState()
is LifeCycleState.FINISHED
boolean isWaiting()
boolean isActive()
getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
or LifeCycleState.IN_PROGRESS
@NotNull Map<String,String> getCustomBuildData()
@NotNull Set<LinkedJiraIssue> getJiraIssues()
@NotNull Set<LinkedJiraIssue> getFixingJiraIssues()
@NotNull Set<LinkedJiraIssue> getRelatedJiraIssues()
Set<String> getJiraIssueKeys()
@NotNull List<RepositoryChangeset> getRepositoryChangesets()
@Deprecated boolean hasComments()
CommentManager
(or ctx.hasComments in Freemarker(@NotNull List<String> getLabelNames()
Set<Author> getUniqueAuthors()
boolean hasChanges()
@Nullable Long getTimeToFix()
@NotNull TestResultsSummary getTestResultsSummary()
@NotNull String getDurationDescription()
String getProcessingDurationDescription()
String getShortReasonSummary()
String getReasonSummary()
String getRelativeBuildDate()
String getRelativeQueueDate()
String getRelativeBuildStartedDate()
@NotNull String getTestSummary()
String getRelativeBuildStartedDate(Date comparedTo)
comparedTo
- String getBuildTime()
@Nullable Date getQueueTime()
@NotNull Collection<ArtifactLink> getArtifactLinks()
@Deprecated Collection<ArtifactLink> getArtifactLinksThatExist()
LifeCycleState getLifeCycleState()
@NotNull String getChangesListSummary()
@NotNull List<ConsumedSubscription> getSubscriptions()
ConsumedSubscription
@NotNull @Deprecated List<VariableSubstitution> getSubstitutedVariables()
@Deprecated @NotNull List<VariableContextSnapshot> getVariableContextLogs()
ResultsSummaryVariableAccessor
instead@Deprecated @NotNull com.google.common.collect.ImmutableList<VariableBaselineItem> getVariableContext()
ResultsSummaryVariableAccessor
instead@Deprecated List<VariableSubstitution> getManuallyOverriddenVariables()
ResultsSummaryVariableAccessor
insteadint getRestartCount()
boolean isNotRunYet()
com.google.common.collect.ImmutableList<Commit> getCommits()
@Nullable Long getBuildAgentId()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.