|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResultsSummary
Used to store the result of all Plan
executions
Method Summary | |
---|---|
java.util.Collection<ArtifactLink> |
getArtifactLinks()
Returns all artifacts associated with this build. |
java.util.Collection<ArtifactLink> |
getArtifactLinksThatExist()
Returns only artifacts that exists |
java.lang.Long |
getBuildAgentId()
The id of the agent that built the result |
java.util.Date |
getBuildCancelledDate()
When the build was cancelled |
java.util.Date |
getBuildCompletedDate()
When the build finished |
java.lang.String |
getBuildKey()
Full key of the plan. |
java.lang.String |
getBuildResultKey()
A full build result key e.g. |
java.lang.String |
getBuildTime()
Formatted buildDate. |
java.lang.String |
getChangesListSummary()
|
java.util.List<Comment> |
getComments()
Gets the associated user comments for the build |
java.util.List<Comment> |
getCommentsToDisplay()
Gets the aggregated comments from the Jobs as well as the parent plan |
com.google.common.collect.ImmutableList<Commit> |
getCommits()
List of commits associated with the build represented by this summary |
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. |
long |
getDuration()
Duration of the build in milliseconds |
java.lang.String |
getDurationDescription()
Returns the duration in a "pretty" format. |
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.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()
Deprecated. Since 3.4 Use getBuildCompletedDate() |
PlanKey |
getPlanKey()
Full key of the plan. |
PlanResultKey |
getPlanResultKey()
Gets the PlanResultKey for this BuildResultsSummary |
long |
getProcessingDuration()
Duration of actual build processing in miliseconds |
java.lang.String |
getProcessingDurationDescription()
Returns the processing duration in a "pretty" format. |
java.util.Date |
getQueueTime()
When the build 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)
|
java.lang.String |
getRelativeBuildStartedDate()
Returns the relative started time (duration) compared to current date |
java.lang.String |
getRelativeBuildStartedDate(java.util.Date comparedTo)
Returns the relative started time (duration) compared to date passed as parameter |
java.lang.String |
getRelativeQueueDate()
|
java.lang.String |
getRelativeQueueDate(java.util.Date comparedTo)
|
java.util.List<RepositoryChangeset> |
getRepositoryChangesets()
|
int |
getRestartCount()
Return the number of build restart attempts |
java.lang.String |
getShortReasonSummary()
|
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 |
TestResultsSummary |
getTestResultsSummary()
|
java.lang.String |
getTestSummary()
|
java.lang.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 |
java.util.Set<Author> |
getUniqueAuthors()
A shortcut method to get the unique set of authors contributing to this build. |
java.util.List<VariableContextSnapshot> |
getVariableContextLogs()
|
boolean |
hasChanges()
Whether a build had changes or not |
boolean |
hasComments()
Checks if the result has any user comments for the build |
boolean |
hasCommentsToDisplay()
Whether there are any comments aggregated from the Jobs |
int |
incrementRestartCount()
Increments number of build restarts and returns the new value |
boolean |
isActive()
Shortcut method to see if getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED or LifeCycleState.IN_PROGRESS |
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 |
isPending()
Shortcut method to see if getLifeCycleState() is LifeCycleState.PENDING |
boolean |
isQueued()
Shortcut method to see if getLifeCycleState() is LifeCycleState.QUEUED |
boolean |
isSuccessful()
Shortcut method to see if ResultStatisticsProvider.getBuildState() is BuildState.SUCCESS |
boolean |
isWaiting()
Shortcut method to see if getLifeCycleState() is LifeCycleState.PENDING or LifeCycleState.QUEUED |
void |
resetTestClassResults(java.util.List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones |
void |
setBuildAgentId(java.lang.Long buildAgentId)
|
void |
setBuildCancelledDate(java.util.Date buildCancelledDate)
|
void |
setBuildCompletedDate(java.util.Date completionDate)
|
void |
setBuildDate(java.util.Date buildDate)
|
void |
setDeltaState(DeltaState deltaState)
Sets the DeltaState for the summary. |
void |
setDuration(long duration)
|
void |
setPlanCompletedDate(java.util.Date completionDate)
Deprecated. Since 3.4 Use setBuildCompletedDate(Date) |
void |
setProcessingDuration(long processingDuration)
|
void |
setQueueTime(java.util.Date queueDate)
|
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 |
updateLifeCycleState(LifeCycleState lifeCycleState,
BuildState buildState)
Update lifeCycleState and buildState in one go. |
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable |
---|
setMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
setId |
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider |
---|
getId |
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable |
---|
isMarkedForDeletion |
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider |
---|
getBuildDate, getBuildNumber, getBuildState, getDurationInSeconds, getStatDate |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
@NotNull PlanResultKey getPlanResultKey()
PlanResultKey
for this BuildResultsSummary
@NotNull Plan getPlan()
Plan
that this result belongs directly belongs to
{@link
- IllegalStateException} if the plan doesn't exist@NotNull java.lang.String getBuildKey()
@NotNull PlanKey getPlanKey()
@NotNull java.lang.String getBuildResultKey()
@NotNull TriggerReason getTriggerReason()
void setTriggerReason(TriggerReason triggerReason)
DeltaState getDeltaState()
DeltaState
of the summary. It can be a build that fixes, breaks, failing, successful. Provides a status
relative to the previous summary.
void setDeltaState(DeltaState deltaState)
DeltaState
for the summary. Provides a status relative to the previous summary.
deltaState
- - the relative status for this summarylong getDuration()
getDuration
in interface ResultStatisticsProvider
void setDuration(long duration)
duration
- duration of the build in millisecondslong getProcessingDuration()
getProcessingDuration
in interface ResultStatisticsProvider
void setProcessingDuration(long processingDuration)
processingDuration
- @Nullable @Deprecated java.util.Date getPlanCompletedDate()
getBuildCompletedDate()
@Deprecated void setPlanCompletedDate(@NotNull java.util.Date completionDate)
setBuildCompletedDate(Date)
completionDate
- void setBuildCompletedDate(java.util.Date completionDate)
@Nullable java.util.Date getBuildCancelledDate()
void setBuildCancelledDate(java.util.Date buildCancelledDate)
java.util.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()
getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
boolean isActive()
getLifeCycleState()
is LifeCycleState.PENDING
or LifeCycleState.QUEUED
or LifeCycleState.IN_PROGRESS
@NotNull java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
@NotNull java.util.Set<LinkedJiraIssue> getJiraIssues()
@NotNull java.util.Set<LinkedJiraIssue> getFixingJiraIssues()
@NotNull java.util.Set<LinkedJiraIssue> getRelatedJiraIssues()
java.util.Set<java.lang.String> getJiraIssueKeys()
@NotNull java.util.List<Comment> getComments()
@NotNull java.util.List<RepositoryChangeset> getRepositoryChangesets()
boolean hasComments()
java.util.List<Labelling> getLabellings()
@NotNull java.util.List<java.lang.String> getLabelNames()
java.util.Set<Author> getUniqueAuthors()
Set
of Author
sboolean hasChanges()
@Nullable java.lang.Long getTimeToFix()
void setTimeToFix(java.lang.Long timeToFix)
timeToFix
- how long (milli seconds) it took for this build to fix a failure.void resetTestClassResults(@NotNull java.util.List<TestClassResult> testClassResults)
testClassResults
- to set@NotNull TestResultsSummary getTestResultsSummary()
void setTestResultsSummary(@NotNull TestResultsSummary testResultsSummary)
testResultsSummary
- the test summary information@NotNull java.lang.String getDurationDescription()
java.lang.String getProcessingDurationDescription()
java.lang.String getShortReasonSummary()
java.lang.String getReasonSummary()
java.lang.String getRelativeBuildDate()
java.lang.String getRelativeQueueDate()
java.lang.String getRelativeBuildStartedDate()
@NotNull java.lang.String getTestSummary()
java.lang.String getRelativeBuildDate(java.util.Date comparedTo)
java.lang.String getRelativeQueueDate(java.util.Date comparedTo)
java.lang.String getRelativeBuildStartedDate(java.util.Date comparedTo)
comparedTo
-
java.lang.String getBuildTime()
void setBuildDate(java.util.Date buildDate)
buildDate
- @Nullable java.util.Date getQueueTime()
void setQueueTime(java.util.Date queueDate)
queueDate
- @NotNull java.util.Collection<ArtifactLink> getArtifactLinks()
java.util.Collection<ArtifactLink> getArtifactLinksThatExist()
LifeCycleState getLifeCycleState()
void updateLifeCycleState(@NotNull LifeCycleState lifeCycleState, @NotNull BuildState buildState)
lifeCycleState
- lifeCycleState to be setbuildState
- buildState to be set@NotNull java.lang.String getChangesListSummary()
@NotNull java.util.List<ConsumedSubscription> getSubscriptions()
ConsumedSubscription
@NotNull java.util.List<VariableSubstitution> getSubstitutedVariables()
@NotNull java.util.List<VariableContextSnapshot> getVariableContextLogs()
java.util.List<VariableSubstitution> getManuallyOverriddenVariables()
int getRestartCount()
int incrementRestartCount()
boolean isNotRunYet()
com.google.common.collect.ImmutableList<Commit> getCommits()
@NotNull java.util.List<Comment> getCommentsToDisplay()
boolean hasCommentsToDisplay()
@Nullable java.lang.Long getBuildAgentId()
void setBuildAgentId(java.lang.Long buildAgentId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |