|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.resultsummary.AbstractResultsSummary
public abstract class AbstractResultsSummary
Field Summary | |
---|---|
protected BuildState |
buildState
|
protected LifeCycleState |
lifeCycleState
|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Constructor Summary | |
---|---|
AbstractResultsSummary()
|
Method Summary | |
---|---|
int |
compareTo(ResultsSummary resultsSummary)
|
boolean |
equals(java.lang.Object object)
|
java.util.Collection<ArtifactLink> |
getArtifactLinks()
Returns all artifacts associated with this build. |
java.util.Collection<ArtifactLink> |
getArtifactLinksThatExist()
This returns live view of the getArtifactLinks() |
java.lang.Long |
getBuildAgentId()
|
java.util.Date |
getBuildCancelledDate()
When the build was cancelled |
java.util.Date |
getBuildCompletedDate()
When the build finished |
java.util.Date |
getBuildDate()
Date when build was passed to execution. |
java.lang.String |
getBuildKey()
Full key of the plan. |
int |
getBuildNumber()
|
java.lang.String |
getBuildResultKey()
A full build result key e.g. |
BuildState |
getBuildState()
|
java.lang.String |
getBuildTime()
When did the build start? |
java.lang.String |
getChangesListSummary()
|
java.util.List<Comment> |
getComments()
Gets the associated user comments for the build |
java.util.List<Comment> |
getCommentsToDisplay()
|
java.util.Set<Commit> |
getCommits()
Any Commit s related to this BuildResultsSummary
Note that if you fetched this result from Lucene that accessing this property will cause a database hit |
java.util.Map<java.lang.String,java.lang.String> |
getCustomBuildData()
Custom data map to store random metadata about the build |
DeltaState |
getDeltaState()
Gets the DeltaState of the summary. |
java.lang.String |
getDiscriminator()
|
long |
getDuration()
Duration of the build in millisecods |
java.lang.String |
getDurationDescription()
Returns the duration in a "pretty" format. |
double |
getDurationInSeconds()
|
long |
getFailedTestCount()
Deprecated. |
java.util.Set<LinkedJiraIssue> |
getFixingJiraIssues()
Return JIRA issues that this build result summary fixes |
java.util.Set<java.lang.String> |
getJiraIssueKeys()
Returns all the JIRA issue keys linked to this build result |
java.util.Set<LinkedJiraIssue> |
getJiraIssues()
Returns all the JIRA issues linked to this build result |
java.util.List<Labelling> |
getLabellings()
Tags / labels assocaited with the build |
java.util.List<java.lang.String> |
getLabelNames()
A shortcust method to get all of the label names from the labbellings |
LifeCycleState |
getLifeCycleState()
|
java.lang.String |
getLongReasonSummary()
|
java.util.List<VariableSubstitution> |
getManuallyOverriddenVariables()
Returns list of variables manually overridden variables |
Plan |
getPlan()
Gets the Plan that this result belongs directly belongs to |
java.util.Date |
getPlanCompletedDate()
|
PlanResultKey |
getPlanResultKey()
Gets the PlanResultKey for this BuildResultsSummary |
long |
getProcessingDuration()
Duration of actual build processing in miliseconds |
java.util.Date |
getQueueTime()
Date when build was queued. |
java.lang.String |
getReasonSummary()
|
java.util.Set<LinkedJiraIssue> |
getRelatedJiraIssues()
Returns JIRA issues that are related to this build result. |
java.lang.String |
getRelativeBuildDate()
|
java.lang.String |
getRelativeBuildDate(java.util.Date comparedTo)
Provides a relative build date, such as 2 hours ago. |
java.lang.String |
getRelativeBuildStartedDate()
Returns the relative started time (duration) compared to current date |
java.lang.String |
getRelativeBuildStartedDate(java.util.Date comparedTo)
Provides a relative build started date, such as 2 hours ago. |
java.lang.String |
getRelativeQueueDate()
|
java.lang.String |
getRelativeQueueDate(java.util.Date comparedTo)
Provides a relative queue date, such as 2 hours ago. |
int |
getRestartCount()
Return the number of build restart attempts |
java.lang.String |
getShortReasonSummary()
|
int |
getSkippedCommitsCount()
The number of commits that were included in this summary, but their details were skipped (because there was too many commits to keep them all in this summary) |
java.util.Date |
getStatDate()
When the build was executed. |
java.util.List<ConsumedSubscription> |
getSubscriptions()
Returns list of consumed artifact dependencies ConsumedSubscription |
java.util.List<VariableSubstitution> |
getSubstitutedVariables()
Returns list of variables substituted during build execution |
long |
getSuccessfulTestCount()
Deprecated. |
java.util.List<TestClassResult> |
getTestClassResults()
|
TestResultsSummary |
getTestResultsSummary()
|
java.lang.String |
getTestSummary()
|
com.opensymphony.xwork.TextProvider |
getTextProvider()
|
java.lang.Long |
getTimeToFix()
A stored version of how long (milli seconds) it took for this build to fix a failure. |
protected TriggerManager |
getTriggerManager()
|
TriggerReason |
getTriggerReason()
Why the build was was triggered |
java.lang.String |
getTriggerReasonKey()
|
java.util.Set |
getUniqueAuthors()
A shortcut method to get the unique set of authors contributing to this build. |
java.util.List<VariableContextSnapshot> |
getVariableContextLogs()
|
java.lang.String |
getVcsRevisionKey()
The string representing the revision when the build was run. |
boolean |
hasChanges()
Whether a build had changes or not |
boolean |
hasComments()
Checks if the result has any user comments for the build |
boolean |
hasCommentsToDisplay()
|
int |
hashCode()
|
int |
incrementRestartCount()
Increments number of build restarts and returns the new value |
boolean |
isActive()
Shortcut method to see if ResultsSummary.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 ResultsSummary.getLifeCycleState() is LifeCycleState.FINISHED |
boolean |
isInProgress()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.IN_PROGRESS |
boolean |
isNotBuilt()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.NOT_BUILT |
boolean |
isPending()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING |
boolean |
isQueued()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.QUEUED |
boolean |
isSuccessful()
Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.SUCCESS |
boolean |
isWaiting()
Shortcut method to see if ResultsSummary.getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED |
void |
resetTestClassResults(java.util.List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones |
void |
setArtifactLinks(java.util.List<ArtifactLink> artifactLinks)
|
void |
setBuildAgentId(java.lang.Long buildAgentId)
|
void |
setBuildCancelledDate(java.util.Date buildCancelledDate)
|
void |
setBuildCompletedDate(java.util.Date buildCompletedDate)
|
void |
setBuildDate(java.util.Date buildDate)
|
void |
setBuildKey(java.lang.String buildKey)
|
void |
setBuildNumber(int buildNumber)
|
void |
setBuildState(BuildState buildState)
|
void |
setComments(java.util.List<Comment> comments)
|
void |
setCommits(java.util.Set<Commit> commits)
|
void |
setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)
|
void |
setDeltaState(DeltaState deltaState)
Sets the DeltaState for the summary. |
void |
setDiscriminator(java.lang.String discriminator)
|
void |
setDuration(long duration)
|
void |
setJiraIssues(java.util.Set jiraIssues)
|
void |
setLabellings(java.util.List<Labelling> labellings)
|
void |
setLifeCycleState(LifeCycleState lifeCycleState)
|
void |
setPlanCompletedDate(java.util.Date completionDate)
Sets the time when build finished. |
void |
setProcessingDuration(long processingDuration)
|
void |
setQueueTime(java.util.Date queueTime)
|
void |
setRestartCount(int restartCount)
|
void |
setSkippedCommitsCount(int skippedCommitsCount)
|
void |
setSubscriptions(java.util.List<ConsumedSubscription> subscriptions)
|
void |
setSubstitutedVariables(java.util.List<VariableSubstitution> substitutedVariables)
|
void |
setTestResultsSummary(TestResultsSummary testResultsSummary)
Set the test summary information from this build |
void |
setTimeToFix(java.lang.Long timeToFix)
A stored version of how long (milli seconds) it took for this build to fix a failure. |
void |
setTriggerReason(TriggerReason triggerReason)
|
void |
setTriggerReasonKey(java.lang.String triggerReasonKey)
|
void |
setVariableContextLogs(java.util.List<VariableContextSnapshot> variableContextLogs)
|
void |
setVcsRevisionKey(java.lang.String vcsRevisionKey)
|
void |
updateLifeCycleState(LifeCycleState lifeCycleState,
BuildState buildState)
Update lifeCycleState and buildState in one go. |
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
getId, setId |
Field Detail |
---|
protected BuildState buildState
protected LifeCycleState lifeCycleState
Constructor Detail |
---|
public AbstractResultsSummary()
Method Detail |
---|
@NotNull public PlanResultKey getPlanResultKey()
ResultsSummary
PlanResultKey
for this BuildResultsSummary
getPlanResultKey
in interface ResultsSummary
@NotNull public Plan getPlan()
ResultsSummary
Plan
that this result belongs directly belongs to
getPlan
in interface ResultsSummary
@NotNull public java.lang.String getBuildResultKey()
ResultsSummary
getBuildResultKey
in interface ResultsSummary
@Nullable public java.lang.String getVcsRevisionKey()
ResultsSummary
Repository
specific, so may not correspond
and thus be parseable by the current repository configuration. May return null since this data is not always available
getVcsRevisionKey
in interface ResultsSummary
public void setVcsRevisionKey(java.lang.String vcsRevisionKey)
setVcsRevisionKey
in interface ResultsSummary
@NotNull public java.lang.String getDurationDescription()
ResultsSummary
getDurationDescription
in interface ResultsSummary
public java.lang.String getRelativeBuildDate()
getRelativeBuildDate
in interface ResultsSummary
public java.lang.String getRelativeQueueDate()
getRelativeQueueDate
in interface ResultsSummary
public java.lang.String getRelativeBuildStartedDate()
ResultsSummary
getRelativeBuildStartedDate
in interface ResultsSummary
public java.lang.String getRelativeBuildDate(java.util.Date comparedTo)
getRelativeBuildDate
in interface ResultsSummary
public java.lang.String getRelativeQueueDate(java.util.Date comparedTo)
getRelativeQueueDate
in interface ResultsSummary
public java.lang.String getRelativeBuildStartedDate(java.util.Date comparedTo)
getRelativeBuildStartedDate
in interface ResultsSummary
public java.lang.String getShortReasonSummary()
getShortReasonSummary
in interface ResultsSummary
public java.lang.String getReasonSummary()
getReasonSummary
in interface ResultsSummary
public java.lang.String getLongReasonSummary()
public boolean isFailed()
ResultsSummary
ResultStatisticsProvider.getBuildState()
is BuildState.FAILED
isFailed
in interface ResultsSummary
public boolean isSuccessful()
ResultsSummary
ResultStatisticsProvider.getBuildState()
is BuildState.SUCCESS
isSuccessful
in interface ResultsSummary
public boolean isPending()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
isPending
in interface ResultsSummary
public boolean isQueued()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.QUEUED
isQueued
in interface ResultsSummary
public boolean isInProgress()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.IN_PROGRESS
isInProgress
in interface ResultsSummary
public boolean isNotBuilt()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.NOT_BUILT
isNotBuilt
in interface ResultsSummary
public boolean isFinalized()
public boolean isFinished()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.FINISHED
isFinished
in interface ResultsSummary
public boolean isWaiting()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
isWaiting
in interface ResultsSummary
public boolean isActive()
ResultsSummary
ResultsSummary.getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
or LifeCycleState.IN_PROGRESS
isActive
in interface ResultsSummary
@NotNull public java.util.Set<LinkedJiraIssue> getFixingJiraIssues()
ResultsSummary
getFixingJiraIssues
in interface ResultsSummary
@NotNull public java.util.Set<LinkedJiraIssue> getRelatedJiraIssues()
ResultsSummary
getRelatedJiraIssues
in interface ResultsSummary
public boolean hasChanges()
ResultsSummary
hasChanges
in interface ResultsSummary
@NotNull public java.lang.String getBuildKey()
ResultsSummary
getBuildKey
in interface ResultsSummary
public void setBuildKey(java.lang.String buildKey)
setBuildKey
in interface MutableBuildKeyResultsSummary
public int getBuildNumber()
getBuildNumber
in interface ResultStatisticsProvider
public void setBuildNumber(int buildNumber)
public java.util.Date getBuildDate()
getBuildDate
in interface ResultStatisticsProvider
public void setBuildDate(java.util.Date buildDate)
setBuildDate
in interface ResultsSummary
public java.util.Date getStatDate()
ResultStatisticsProvider
getStatDate
in interface ResultStatisticsProvider
public java.util.Date getQueueTime()
getQueueTime
in interface ResultsSummary
public void setQueueTime(java.util.Date queueTime)
setQueueTime
in interface ResultsSummary
public java.util.Date getBuildCompletedDate()
ResultsSummary
getBuildCompletedDate
in interface ResultsSummary
public void setBuildCompletedDate(java.util.Date buildCompletedDate)
public DeltaState getDeltaState()
ResultsSummary
DeltaState
of the summary. It can be a build that fixes, breaks, failing, successfull. Provides a status
relative to the previous summary.
getDeltaState
in interface ResultsSummary
public void setDeltaState(DeltaState deltaState)
ResultsSummary
DeltaState
for the summary. Provides a status relative to the previous summary.
setDeltaState
in interface ResultsSummary
deltaState
- - the relative status for this summarypublic java.util.Set<java.lang.String> getJiraIssueKeys()
ResultsSummary
getJiraIssueKeys
in interface ResultsSummary
@NotNull public java.util.Set<LinkedJiraIssue> getJiraIssues()
ResultsSummary
getJiraIssues
in interface ResultsSummary
public void setJiraIssues(java.util.Set jiraIssues)
@NotNull public java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
ResultsSummary
getCustomBuildData
in interface ResultsSummary
public void setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)
public java.lang.Long getTimeToFix()
ResultsSummary
getTimeToFix
in interface ResultsSummary
public void setTimeToFix(java.lang.Long timeToFix)
ResultsSummary
setTimeToFix
in interface ResultsSummary
timeToFix
- how long (milli seconds) it took for this build to fix a failure.public java.util.List<Labelling> getLabellings()
ResultsSummary
getLabellings
in interface ResultsSummary
public void setLabellings(java.util.List<Labelling> labellings)
@NotNull public java.util.List<java.lang.String> getLabelNames()
ResultsSummary
getLabelNames
in interface ResultsSummary
public void setComments(java.util.List<Comment> comments)
@NotNull public java.util.Collection<ArtifactLink> getArtifactLinks()
ResultsSummary
getArtifactLinks
in interface ResultsSummary
public void setArtifactLinks(java.util.List<ArtifactLink> artifactLinks)
public java.util.List<ConsumedSubscription> getSubscriptions()
ResultsSummary
ConsumedSubscription
getSubscriptions
in interface ResultsSummary
public void setSubscriptions(java.util.List<ConsumedSubscription> subscriptions)
public java.util.Set getUniqueAuthors()
ResultsSummary
getUniqueAuthors
in interface ResultsSummary
Set
of Author
spublic java.lang.String getTriggerReasonKey()
public void setTriggerReasonKey(java.lang.String triggerReasonKey)
@NotNull public TriggerReason getTriggerReason()
ResultsSummary
getTriggerReason
in interface ResultsSummary
public void setTriggerReason(TriggerReason triggerReason)
setTriggerReason
in interface ResultsSummary
public java.lang.Long getBuildAgentId()
public void setBuildAgentId(java.lang.Long buildAgentId)
public double getDurationInSeconds()
getDurationInSeconds
in interface ResultStatisticsProvider
public java.util.Collection<ArtifactLink> getArtifactLinksThatExist()
getArtifactLinksThatExist
in interface ResultsSummary
public long getDuration()
ResultsSummary
getDuration
in interface ResultsSummary
public void setDuration(long duration)
setDuration
in interface ResultsSummary
duration
- duration of the build in millisecondspublic long getProcessingDuration()
ResultsSummary
getProcessingDuration
in interface ResultsSummary
public void setProcessingDuration(long processingDuration)
setProcessingDuration
in interface ResultsSummary
@Nullable public java.util.Date getPlanCompletedDate()
getPlanCompletedDate
in interface ResultsSummary
public void setPlanCompletedDate(@NotNull java.util.Date completionDate)
ResultsSummary
setPlanCompletedDate
in interface ResultsSummary
@Nullable public java.util.Date getBuildCancelledDate()
ResultsSummary
getBuildCancelledDate
in interface ResultsSummary
public void setBuildCancelledDate(java.util.Date buildCancelledDate)
setBuildCancelledDate
in interface ResultsSummary
public java.lang.String getBuildTime()
getBuildTime
in interface ResultsSummary
@NotNull public java.util.Set<Commit> getCommits()
ResultsSummary
Commit
s related to this BuildResultsSummary
Note that if you fetched this result from Lucene that accessing this property will cause a database hit
getCommits
in interface ResultsSummary
public void setCommits(java.util.Set<Commit> commits)
public int getSkippedCommitsCount()
ResultsSummary
getSkippedCommitsCount
in interface ResultsSummary
public void setSkippedCommitsCount(int skippedCommitsCount)
@NotNull public java.lang.String getChangesListSummary()
getChangesListSummary
in interface ResultsSummary
protected TriggerManager getTriggerManager()
public com.opensymphony.xwork.TextProvider getTextProvider()
public BuildState getBuildState()
getBuildState
in interface ResultStatisticsProvider
public void setBuildState(BuildState buildState)
public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface ResultsSummary
public void setLifeCycleState(LifeCycleState lifeCycleState)
public void updateLifeCycleState(@NotNull LifeCycleState lifeCycleState, @NotNull BuildState buildState)
ResultsSummary
updateLifeCycleState
in interface ResultsSummary
lifeCycleState
- lifeCycleState to be setbuildState
- buildState to be setpublic java.lang.String getDiscriminator()
public void setDiscriminator(java.lang.String discriminator)
@NotNull public java.util.List<Comment> getComments()
ResultsSummary
getComments
in interface ResultsSummary
@NotNull public java.util.List<VariableSubstitution> getSubstitutedVariables()
ResultsSummary
getSubstitutedVariables
in interface ResultsSummary
public void setSubstitutedVariables(java.util.List<VariableSubstitution> substitutedVariables)
public java.util.List<VariableSubstitution> getManuallyOverriddenVariables()
ResultsSummary
getManuallyOverriddenVariables
in interface ResultsSummary
@NotNull public java.util.List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs
in interface ResultsSummary
public void setVariableContextLogs(java.util.List<VariableContextSnapshot> variableContextLogs)
public boolean hasComments()
ResultsSummary
hasComments
in interface ResultsSummary
public boolean hasCommentsToDisplay()
public java.util.List<Comment> getCommentsToDisplay()
@NotNull public TestResultsSummary getTestResultsSummary()
getTestResultsSummary
in interface ResultsSummary
@Deprecated public long getFailedTestCount()
ResultsSummary
TestResultsSummary
(getTestResultsSummary().getFailedTestCaseCount()) instead
Number of failing tests
getFailedTestCount
in interface ResultsSummary
@Deprecated public long getSuccessfulTestCount()
ResultsSummary
TestResultsSummary
(getTestResultsSummary().getSuccessfulTestCaseCount())instead
Number of successful tests
getSuccessfulTestCount
in interface ResultsSummary
public void setTestResultsSummary(@NotNull TestResultsSummary testResultsSummary)
ResultsSummary
setTestResultsSummary
in interface ResultsSummary
testResultsSummary
- the test summary information@NotNull public java.lang.String getTestSummary()
getTestSummary
in interface ResultsSummary
@NotNull public java.util.List<TestClassResult> getTestClassResults()
public void resetTestClassResults(@NotNull java.util.List<TestClassResult> testClassResults)
ResultsSummary
resetTestClassResults
in interface ResultsSummary
testClassResults
- to setpublic int getRestartCount()
ResultsSummary
getRestartCount
in interface ResultsSummary
public int incrementRestartCount()
ResultsSummary
incrementRestartCount
in interface ResultsSummary
public void setRestartCount(int restartCount)
public int compareTo(ResultsSummary resultsSummary)
compareTo
in interface java.lang.Comparable<ResultsSummary>
public boolean equals(java.lang.Object object)
equals
in class com.atlassian.core.bean.EntityObject
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |