public abstract class BaseResultSummary extends BambooEntityObject implements ImmutableResultsSummary
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.lang3.time.FastDateFormat |
DATE_FORMAT |
CUSTOM_DATA_BUILD_KEY| Constructor and Description |
|---|
BaseResultSummary() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ImmutableResultsSummary resultsSummary) |
protected String |
createChangeListSummary() |
boolean |
equals(Object object) |
Collection<ArtifactLink> |
getArtifactLinksThatExist()
Deprecated.
since 4.3
|
String |
getBuildTime()
When did the build start?
|
com.google.common.collect.ImmutableList<Commit> |
getCommits()
List of commits associated with the build represented by this summary
|
@NotNull String |
getDurationDescription()
Returns the duration in a "pretty" format.
|
@NotNull Set<LinkedJiraIssue> |
getFixingJiraIssues()
Return JIRA issues that this build result summary fixes
|
Set<String> |
getJiraIssueKeys()
Returns all the JIRA issue keys linked to this build result
|
@NotNull List<String> |
getLabelNames()
A shortcut method to get all of the label names from the labellings
|
List<VariableSubstitution> |
getManuallyOverriddenVariables()
Returns empty list for any result created by Bamboo 5.15 or later
|
@NotNull PlanResultKey |
getPlanResultKey()
Gets the
PlanResultKey for this ImmutableResultsSummary |
String |
getProcessingDurationDescription()
Returns the processing duration in a "pretty" format.
|
@NotNull Set<LinkedJiraIssue> |
getRelatedJiraIssues()
Returns JIRA issues that are related to this build result.
|
String |
getRelativeBuildDate() |
String |
getRelativeBuildDate(Date comparedTo)
Provides a relative build date, such as 2 hours ago.
|
String |
getRelativeBuildStartedDate()
Returns the relative started time (duration) compared to current date
|
String |
getRelativeBuildStartedDate(Date comparedTo)
Provides a relative build started date, such as 2 hours ago.
|
String |
getRelativeQueueDate() |
String |
getRelativeQueueDate(Date comparedTo)
Provides a relative queue date, such as 2 hours ago.
|
String |
getShortReasonSummary() |
@NotNull Date |
getStatDate()
When the build was executed.
|
@NotNull String |
getTestSummary() |
protected abstract TriggerManager |
getTriggerManager() |
Set<Author> |
getUniqueAuthors()
A shortcut method to get the unique set of authors contributing to this build.
|
boolean |
hasChanges()
Whether a build had changes or not
|
boolean |
hasComments()
Checks if the result has any user comments for the build
|
int |
hashCode() |
boolean |
isActive()
Shortcut method to see if
ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESS |
boolean |
isFailed()
Shortcut method to see if
ResultStatisticsProvider.getBuildState() is BuildState.FAILED |
boolean |
isFinalized() |
boolean |
isFinished()
Shortcut method to see if
ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.FINISHED |
boolean |
isInProgress()
Shortcut method to see if
ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.IN_PROGRESS |
boolean |
isNotBuilt()
Shortcut method to see if
ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.NOT_BUILT |
boolean |
isPending()
Shortcut method to see if
ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.PENDING |
boolean |
isQueued()
Shortcut method to see if
ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.QUEUED |
boolean |
isSuccessful()
Shortcut method to see if
ResultStatisticsProvider.getBuildState() is BuildState.SUCCESS |
boolean |
isWaiting()
Shortcut method to see if
ImmutableResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED |
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitgetArtifactLinks, getBuildAgentId, getBuildCancelledDate, getBuildCompletedDate, getChangesListSummary, getCustomBuildData, getDeltaState, getDuration, getFullPlanName, getImmutableChain, getImmutablePlan, getJiraIssues, getLabellings, getLifeCycleState, getLogSize, getPlanIfExists, getPlanKey, getPlanName, getProcessingDuration, getQueueTime, getReasonSummary, getRepositoryChangesets, getRestartCount, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTimeToFix, getTriggerReason, getVariableContextLogs, isCustomBuild, isNotRunYet, isOnceOff, isRebuildgetIdgetBuildDate, getBuildNumber, getBuildStatesetIdprotected static final org.apache.commons.lang3.time.FastDateFormat DATE_FORMAT
public boolean isFailed()
ImmutableResultsSummaryResultStatisticsProvider.getBuildState() is BuildState.FAILEDisFailed in interface ImmutableResultsSummarypublic boolean isSuccessful()
ImmutableResultsSummaryResultStatisticsProvider.getBuildState() is BuildState.SUCCESSisSuccessful in interface ImmutableResultsSummarypublic boolean isPending()
ImmutableResultsSummaryImmutableResultsSummary.getLifeCycleState() is LifeCycleState.PENDINGisPending in interface ImmutableResultsSummarypublic boolean isQueued()
ImmutableResultsSummaryImmutableResultsSummary.getLifeCycleState() is LifeCycleState.QUEUEDisQueued in interface ImmutableResultsSummarypublic boolean isInProgress()
ImmutableResultsSummaryImmutableResultsSummary.getLifeCycleState() is LifeCycleState.IN_PROGRESSisInProgress in interface ImmutableResultsSummarypublic boolean isNotBuilt()
ImmutableResultsSummaryImmutableResultsSummary.getLifeCycleState() is LifeCycleState.NOT_BUILTisNotBuilt in interface ImmutableResultsSummarypublic boolean isFinalized()
public boolean isFinished()
ImmutableResultsSummaryImmutableResultsSummary.getLifeCycleState() is LifeCycleState.FINISHEDisFinished in interface ImmutableResultsSummarypublic boolean isWaiting()
ImmutableResultsSummaryImmutableResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUEDisWaiting in interface ImmutableResultsSummarypublic boolean isActive()
ImmutableResultsSummaryImmutableResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESSisActive in interface ImmutableResultsSummary@NotNull public @NotNull PlanResultKey getPlanResultKey()
ImmutableResultsSummaryPlanResultKey for this ImmutableResultsSummarygetPlanResultKey in interface ImmutableResultsSummary@NotNull public @NotNull String getDurationDescription()
ImmutableResultsSummarygetDurationDescription in interface ImmutableResultsSummarypublic String getRelativeBuildDate()
getRelativeBuildDate in interface ImmutableResultsSummarypublic String getRelativeQueueDate()
getRelativeQueueDate in interface ImmutableResultsSummarypublic String getRelativeBuildStartedDate()
ImmutableResultsSummarygetRelativeBuildStartedDate in interface ImmutableResultsSummarypublic String getRelativeBuildDate(Date comparedTo)
getRelativeBuildDate in interface ImmutableResultsSummarypublic String getRelativeQueueDate(Date comparedTo)
getRelativeQueueDate in interface ImmutableResultsSummarypublic String getRelativeBuildStartedDate(Date comparedTo)
getRelativeBuildStartedDate in interface ImmutableResultsSummarypublic String getShortReasonSummary()
getShortReasonSummary in interface ImmutableResultsSummaryprotected abstract TriggerManager getTriggerManager()
@NotNull public @NotNull Set<LinkedJiraIssue> getFixingJiraIssues()
ImmutableResultsSummarygetFixingJiraIssues in interface ImmutableResultsSummary@NotNull public @NotNull Set<LinkedJiraIssue> getRelatedJiraIssues()
ImmutableResultsSummarygetRelatedJiraIssues in interface ImmutableResultsSummarypublic boolean hasChanges()
ImmutableResultsSummaryhasChanges in interface ImmutableResultsSummary@NotNull public @NotNull Date getStatDate()
ResultStatisticsProvidergetStatDate in interface ResultStatisticsProviderpublic Set<String> getJiraIssueKeys()
ImmutableResultsSummarygetJiraIssueKeys in interface ImmutableResultsSummary@NotNull public @NotNull List<String> getLabelNames()
ImmutableResultsSummarygetLabelNames in interface ImmutableResultsSummarypublic Set<Author> getUniqueAuthors()
ImmutableResultsSummarygetUniqueAuthors in interface ImmutableResultsSummarySet of Authors@Deprecated public Collection<ArtifactLink> getArtifactLinksThatExist()
getArtifactLinksThatExist in interface ImmutableResultsSummarypublic String getProcessingDurationDescription()
ImmutableResultsSummarygetProcessingDurationDescription in interface ImmutableResultsSummarypublic String getBuildTime()
getBuildTime in interface ImmutableResultsSummaryprotected String createChangeListSummary()
public com.google.common.collect.ImmutableList<Commit> getCommits()
ImmutableResultsSummarygetCommits in interface ImmutableResultsSummary@NotNull public @NotNull String getTestSummary()
getTestSummary in interface ImmutableResultsSummarypublic int compareTo(ImmutableResultsSummary resultsSummary)
compareTo in interface Comparable<ImmutableResultsSummary>public boolean equals(Object object)
equals in class com.atlassian.core.bean.EntityObjectpublic int hashCode()
hashCode in class com.atlassian.core.bean.EntityObjectpublic List<VariableSubstitution> getManuallyOverriddenVariables()
ImmutableResultsSummarygetManuallyOverriddenVariables in interface ImmutableResultsSummarypublic boolean hasComments()
ImmutableResultsSummaryhasComments in interface ImmutableResultsSummaryCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.