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
|
String |
getDurationDescription()
Returns the duration in a "pretty" format.
|
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
|
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
|
PlanResultKey |
getPlanResultKey()
Gets the
PlanResultKey for this ImmutableResultsSummary |
String |
getProcessingDurationDescription()
Returns the processing duration in a "pretty" format.
|
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() |
Date |
getStatDate()
When the build was executed.
|
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, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getArtifactLinks, 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, isRebuild
getId
getBuildDate, getBuildNumber, getBuildState
setId
protected static final org.apache.commons.lang3.time.FastDateFormat DATE_FORMAT
public boolean isFailed()
ImmutableResultsSummary
ResultStatisticsProvider.getBuildState()
is BuildState.FAILED
isFailed
in interface ImmutableResultsSummary
public boolean isSuccessful()
ImmutableResultsSummary
ResultStatisticsProvider.getBuildState()
is BuildState.SUCCESS
isSuccessful
in interface ImmutableResultsSummary
public boolean isPending()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
isPending
in interface ImmutableResultsSummary
public boolean isQueued()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.QUEUED
isQueued
in interface ImmutableResultsSummary
public boolean isInProgress()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.IN_PROGRESS
isInProgress
in interface ImmutableResultsSummary
public boolean isNotBuilt()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.NOT_BUILT
isNotBuilt
in interface ImmutableResultsSummary
public boolean isFinalized()
public boolean isFinished()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.FINISHED
isFinished
in interface ImmutableResultsSummary
public boolean isWaiting()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
isWaiting
in interface ImmutableResultsSummary
public boolean isActive()
ImmutableResultsSummary
ImmutableResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
or LifeCycleState.IN_PROGRESS
isActive
in interface ImmutableResultsSummary
@NotNull public PlanResultKey getPlanResultKey()
ImmutableResultsSummary
PlanResultKey
for this ImmutableResultsSummary
getPlanResultKey
in interface ImmutableResultsSummary
@NotNull public String getDurationDescription()
ImmutableResultsSummary
getDurationDescription
in interface ImmutableResultsSummary
public String getRelativeBuildDate()
getRelativeBuildDate
in interface ImmutableResultsSummary
public String getRelativeQueueDate()
getRelativeQueueDate
in interface ImmutableResultsSummary
public String getRelativeBuildStartedDate()
ImmutableResultsSummary
getRelativeBuildStartedDate
in interface ImmutableResultsSummary
public String getRelativeBuildDate(Date comparedTo)
getRelativeBuildDate
in interface ImmutableResultsSummary
public String getRelativeQueueDate(Date comparedTo)
getRelativeQueueDate
in interface ImmutableResultsSummary
public String getRelativeBuildStartedDate(Date comparedTo)
getRelativeBuildStartedDate
in interface ImmutableResultsSummary
public String getShortReasonSummary()
getShortReasonSummary
in interface ImmutableResultsSummary
protected abstract TriggerManager getTriggerManager()
@NotNull public Set<LinkedJiraIssue> getFixingJiraIssues()
ImmutableResultsSummary
getFixingJiraIssues
in interface ImmutableResultsSummary
@NotNull public Set<LinkedJiraIssue> getRelatedJiraIssues()
ImmutableResultsSummary
getRelatedJiraIssues
in interface ImmutableResultsSummary
public boolean hasChanges()
ImmutableResultsSummary
hasChanges
in interface ImmutableResultsSummary
@NotNull public Date getStatDate()
ResultStatisticsProvider
getStatDate
in interface ResultStatisticsProvider
public Set<String> getJiraIssueKeys()
ImmutableResultsSummary
getJiraIssueKeys
in interface ImmutableResultsSummary
@NotNull public List<String> getLabelNames()
ImmutableResultsSummary
getLabelNames
in interface ImmutableResultsSummary
public Set<Author> getUniqueAuthors()
ImmutableResultsSummary
getUniqueAuthors
in interface ImmutableResultsSummary
Set
of Author
s@Deprecated public Collection<ArtifactLink> getArtifactLinksThatExist()
getArtifactLinksThatExist
in interface ImmutableResultsSummary
public String getProcessingDurationDescription()
ImmutableResultsSummary
getProcessingDurationDescription
in interface ImmutableResultsSummary
public String getBuildTime()
getBuildTime
in interface ImmutableResultsSummary
protected String createChangeListSummary()
public com.google.common.collect.ImmutableList<Commit> getCommits()
ImmutableResultsSummary
getCommits
in interface ImmutableResultsSummary
@NotNull public String getTestSummary()
getTestSummary
in interface ImmutableResultsSummary
public int compareTo(ImmutableResultsSummary resultsSummary)
compareTo
in interface Comparable<ImmutableResultsSummary>
public boolean equals(Object object)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public List<VariableSubstitution> getManuallyOverriddenVariables()
ImmutableResultsSummary
getManuallyOverriddenVariables
in interface ImmutableResultsSummary
public boolean hasComments()
ImmutableResultsSummary
hasComments
in interface ImmutableResultsSummary
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.