@Entity public abstract class AbstractResultsSummary extends BaseResultSummary implements ImmutableDeletable, Deletable, MutableBuildKeyResultsSummary
Modifier and Type | Field and Description |
---|---|
protected BuildState |
buildState |
protected static com.google.common.base.Supplier<CachedPlanManager> |
cachedPlanManagerRef |
protected LifeCycleState |
lifeCycleState |
protected boolean |
markedForDeletion |
protected static com.google.common.base.Supplier<PlanManager> |
planManagerRef |
DATE_FORMAT
CUSTOM_DATA_BUILD_KEY
getPlanKey
Constructor and Description |
---|
AbstractResultsSummary() |
Modifier and Type | Method and Description |
---|---|
List<ArtifactLink> |
getArtifactLinks()
Returns all artifacts associated with this build.
|
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
|
Date |
getBuildDate()
Date when build was passed to execution.
|
String |
getBuildKey() |
int |
getBuildNumber()
Get build number
|
String |
getBuildResultKey() |
BuildState |
getBuildState()
Build state.
|
String |
getChangesListSummary() |
Map<String,String> |
getCustomBuildData()
Custom data map to store random metadata about the build
|
List<CustomDataRow> |
getCustomBuildDataRows()
This method is not intended to be used outside
BuildResultsSummaryDao |
DeltaState |
getDeltaState()
Gets the
DeltaState of the summary. |
String |
getDiscriminator() |
long |
getDuration()
Duration of the build in milliseconds
|
int |
getFormatVersion() |
ImmutablePlan |
getImmutablePlan()
Gets the
Plan that this result belongs directly belongs to |
Set<LinkedJiraIssue> |
getJiraIssues()
Returns all the JIRA issues linked to this build result
|
List<Labelling> |
getLabellings()
Tags / labels associated with the build
|
LifeCycleState |
getLifeCycleState() |
Long |
getLogSize()
Returns the size of log associated with this result.
|
Plan |
getPlan()
Gets the
Plan that this result belongs directly belongs to |
PlanKey |
getPlanKey()
Full key of the plan.
|
long |
getProcessingDuration()
Duration of actual build processing in miliseconds
|
Date |
getQueueTime()
Date when build was queued.
|
String |
getReasonSummary() |
List<RepositoryChangeset> |
getRepositoryChangesets() |
int |
getRestartCount()
Return the number of build restart attempts
|
Iterable<VariableContextSnapshot> |
getResultVariables() |
Long |
getStageResultId() |
List<ConsumedSubscription> |
getSubscriptions()
Returns list of consumed artifact dependencies
ConsumedSubscription |
List<VariableSubstitution> |
getSubstitutedVariables()
Returns list of variables substituted during build execution
|
List<TestClassResult> |
getTestClassResults() |
TestResultsSummary |
getTestResultsSummary() |
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
|
String |
getTriggerReasonKey() |
com.google.common.collect.ImmutableList<VariableBaselineItem> |
getVariableContext() |
VariableContextBaseline |
getVariableContextBaseline() |
Long |
getVariableContextBaselineId() |
List<VariableContextSnapshot> |
getVariableContextLogs() |
int |
incrementRestartCount()
Increments number of build restarts and returns the new value
|
boolean |
isCustomBuild()
Indicates that this result was run with custom variables (some of the variables were overwritten) - used to display indicator in UI
|
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 |
isRebuild()
Indicates that this result was rebuild via "re-run this build" action.
|
void |
resetTestClassResults(List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones
|
void |
setArtifactLinks(List<ArtifactLink> artifactLinks) |
void |
setBuildAgentId(long buildAgentId) |
void |
setBuildCancelledDate(Date buildCancelledDate) |
void |
setBuildCompletedDate(Date buildCompletedDate) |
void |
setBuildDate(Date buildDate) |
void |
setBuildKey(String buildKey) |
void |
setBuildNumber(int buildNumber) |
void |
setBuildState(BuildState buildState) |
void |
setComments(List<Comment> comments) |
void |
setCustomBuild(boolean customBuild) |
void |
setCustomBuildData(Map<String,String> customBuildData) |
void |
setDeltaState(DeltaState deltaState)
Sets the
DeltaState for the summary. |
void |
setDiscriminator(String discriminator) |
void |
setDuration(long duration) |
void |
setFormatVersion(int formatVersion) |
void |
setJiraIssues(Set<LinkedJiraIssue> jiraIssues) |
void |
setLabellings(List<Labelling> labellings) |
void |
setLifeCycleState(LifeCycleState lifeCycleState) |
void |
setLogSize(Long logSize)
Sets the size of the log file associated with this result, eg.
|
void |
setOnceOff(boolean onceOff) |
void |
setPlanKey(PlanKey planKey) |
void |
setProcessingDuration(long processingDuration) |
void |
setQueueTime(Date queueTime) |
void |
setRebuild(boolean rebuild) |
void |
setRestartCount(int restartCount) |
void |
setStageResultId(Long stageResultId) |
void |
setSubscriptions(List<ConsumedSubscription> subscriptions) |
void |
setSubstitutedVariables(List<VariableSubstitution> substitutedVariables) |
void |
setTestResultsSummary(TestResultsSummary testResultsSummary)
Set the test summary information from this build
|
void |
setTimeToFix(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(String triggerReasonKey) |
void |
setVariableContextBaseline(VariableContextBaseline variableContextBaseline) |
void |
setVariableContextLogs(List<VariableContextSnapshot> variableContextLogs) |
String |
toString() |
void |
updateCustomDataEntry(String key,
String value)
Add or modify key value pair to Object's custom data map.
|
void |
updateFormatVersion()
Sets format version to current Bamboo build number.
|
void |
updateLifeCycleState(LifeCycleState lifeCycleState,
BuildState buildState)
Update lifeCycleState and buildState in one go.
|
compareTo, createChangeListSummary, equals, getArtifactLinksThatExist, getBuildTime, getCommits, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getLabelNames, getManuallyOverriddenVariables, getPlanResultKey, getProcessingDurationDescription, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getStatDate, getTestSummary, getUniqueAuthors, hasChanges, hasComments, hashCode, isActive, isFailed, isFinalized, isFinished, isInProgress, isNotBuilt, isPending, isQueued, isSuccessful, isWaiting
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, wait, wait, wait
setMarkedForDeletion
setId
getId
isMarkedForDeletion
getArtifactLinksThatExist, getBuildTime, getCommits, getDurationDescription, getFixingJiraIssues, getJiraIssueKeys, getLabelNames, getManuallyOverriddenVariables, getPlanResultKey, getProcessingDurationDescription, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getShortReasonSummary, getTestSummary, getUniqueAuthors, hasChanges, hasComments, isActive, isFailed, isFinished, isInProgress, isNotBuilt, isNotRunYet, isPending, isQueued, isSuccessful, isWaiting
getStatDate
compareTo
getPlanResultKey
protected boolean markedForDeletion
protected BuildState buildState
protected LifeCycleState lifeCycleState
protected static final com.google.common.base.Supplier<CachedPlanManager> cachedPlanManagerRef
protected static final com.google.common.base.Supplier<PlanManager> planManagerRef
@NotNull public ImmutablePlan getImmutablePlan()
ResultsSummary
Plan
that this result belongs directly belongs togetImmutablePlan
in interface ImmutableResultsSummary
getImmutablePlan
in interface ResultsSummary
@NotNull public Plan getPlan()
ResultsSummary
Plan
that this result belongs directly belongs togetPlan
in interface ImmutableResultsSummary
getPlan
in interface ResultsSummary
@NotNull public String getBuildResultKey()
getBuildResultKey
in interface ResultsSummary
@NotNull public String getBuildKey()
getBuildKey
in interface ResultsSummary
public String getReasonSummary()
getReasonSummary
in interface ImmutableResultsSummary
public void setBuildKey(String buildKey)
setBuildKey
in interface MutableBuildKeyResultsSummary
public int getBuildNumber()
ResultStatisticsProvider
getBuildNumber
in interface ResultStatisticsProvider
public void setBuildNumber(int buildNumber)
public Date getBuildDate()
getBuildDate
in interface ResultStatisticsProvider
public void setBuildDate(Date buildDate)
setBuildDate
in interface ResultsSummary
public Date getQueueTime()
getQueueTime
in interface ImmutableResultsSummary
public void setQueueTime(Date queueTime)
setQueueTime
in interface ResultsSummary
public Date getBuildCompletedDate()
ImmutableResultsSummary
getBuildCompletedDate
in interface ImmutableResultsSummary
public void setBuildCompletedDate(Date buildCompletedDate)
setBuildCompletedDate
in interface ResultsSummary
public DeltaState getDeltaState()
ImmutableResultsSummary
DeltaState
of the summary. It can be a build that fixes, breaks, failing, successful. Provides a status
relative to the previous summary.getDeltaState
in interface ImmutableResultsSummary
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 boolean isOnceOff()
ImmutableResultsSummary
isOnceOff
in interface ImmutableResultsSummary
public void setOnceOff(boolean onceOff)
setOnceOff
in interface ResultsSummary
public boolean isCustomBuild()
ImmutableResultsSummary
isCustomBuild
in interface ImmutableResultsSummary
public void setCustomBuild(boolean customBuild)
setCustomBuild
in interface ResultsSummary
public boolean isRebuild()
ImmutableResultsSummary
isRebuild
in interface ImmutableResultsSummary
public void setRebuild(boolean rebuild)
setRebuild
in interface ResultsSummary
@Nullable public Long getLogSize()
ImmutableResultsSummary
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.
getLogSize
in interface ImmutableResultsSummary
public void setLogSize(@Nullable Long logSize)
ResultsSummary
Job
or
largest log produced by Chain
's Job
s.setLogSize
in interface ResultsSummary
logSize
- size of the largest log associated with the result (use null if unknown)@NotNull public Set<LinkedJiraIssue> getJiraIssues()
ImmutableResultsSummary
getJiraIssues
in interface ImmutableResultsSummary
public void setJiraIssues(Set<LinkedJiraIssue> jiraIssues)
@NotNull public Map<String,String> getCustomBuildData()
ImmutableResultsSummary
getCustomBuildData
in interface ImmutableResultsSummary
public void updateCustomDataEntry(@NotNull String key, @NotNull String value)
BambooCustomDataAware
updateCustomDataEntry
in interface BambooCustomDataAware
public Long getTimeToFix()
ImmutableResultsSummary
getTimeToFix
in interface ImmutableResultsSummary
public void setTimeToFix(Long timeToFix)
ResultsSummary
setTimeToFix
in interface ResultsSummary
timeToFix
- how long (milli seconds) it took for this build to fix a failure.public List<Labelling> getLabellings()
ImmutableResultsSummary
getLabellings
in interface ImmutableResultsSummary
@NotNull public List<ArtifactLink> getArtifactLinks()
ImmutableResultsSummary
getArtifactLinks
in interface ImmutableResultsSummary
public void setArtifactLinks(List<ArtifactLink> artifactLinks)
@NotNull public List<ConsumedSubscription> getSubscriptions()
ImmutableResultsSummary
ConsumedSubscription
getSubscriptions
in interface ImmutableResultsSummary
public void setSubscriptions(List<ConsumedSubscription> subscriptions)
public String getTriggerReasonKey()
public void setTriggerReasonKey(String triggerReasonKey)
@NotNull public TriggerReason getTriggerReason()
ImmutableResultsSummary
getTriggerReason
in interface ImmutableResultsSummary
public void setTriggerReason(TriggerReason triggerReason)
setTriggerReason
in interface ResultsSummary
public Long getBuildAgentId()
ImmutableResultsSummary
getBuildAgentId
in interface ImmutableResultsSummary
public void setBuildAgentId(long buildAgentId)
setBuildAgentId
in interface ResultsSummary
public long getDuration()
ImmutableResultsSummary
getDuration
in interface ImmutableResultsSummary
getDuration
in interface ResultStatisticsProvider
public void setDuration(long duration)
setDuration
in interface ResultsSummary
duration
- duration of the build in millisecondspublic long getProcessingDuration()
ImmutableResultsSummary
getProcessingDuration
in interface ImmutableResultsSummary
getProcessingDuration
in interface ResultStatisticsProvider
public void setProcessingDuration(long processingDuration)
setProcessingDuration
in interface ResultsSummary
@Nullable public Date getBuildCancelledDate()
ImmutableResultsSummary
getBuildCancelledDate
in interface ImmutableResultsSummary
public void setBuildCancelledDate(Date buildCancelledDate)
setBuildCancelledDate
in interface ResultsSummary
@NotNull public String getChangesListSummary()
getChangesListSummary
in interface ImmutableResultsSummary
protected TriggerManager getTriggerManager()
getTriggerManager
in class BaseResultSummary
public BuildState getBuildState()
ResultStatisticsProvider
getBuildState
in interface ResultStatisticsProvider
public void setBuildState(BuildState buildState)
public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface ImmutableResultsSummary
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 String getDiscriminator()
public void setDiscriminator(String discriminator)
@NotNull public List<RepositoryChangeset> getRepositoryChangesets()
getRepositoryChangesets
in interface ImmutableResultsSummary
@NotNull public List<VariableSubstitution> getSubstitutedVariables()
ImmutableResultsSummary
getSubstitutedVariables
in interface ImmutableResultsSummary
public void setSubstitutedVariables(List<VariableSubstitution> substitutedVariables)
@NotNull public List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs
in interface ImmutableResultsSummary
public void setVariableContextLogs(List<VariableContextSnapshot> variableContextLogs)
@NotNull public Iterable<VariableContextSnapshot> getResultVariables()
@NotNull public com.google.common.collect.ImmutableList<VariableBaselineItem> getVariableContext()
getVariableContext
in interface ImmutableResultsSummary
public Long getVariableContextBaselineId()
getVariableContextBaselineId
in interface ResultsSummary
public void setVariableContextBaseline(@Nullable VariableContextBaseline variableContextBaseline)
@Nullable public VariableContextBaseline getVariableContextBaseline()
@NotNull public TestResultsSummary getTestResultsSummary()
getTestResultsSummary
in interface ImmutableResultsSummary
public void setTestResultsSummary(@NotNull TestResultsSummary testResultsSummary)
ResultsSummary
setTestResultsSummary
in interface ResultsSummary
testResultsSummary
- the test summary information@NotNull public List<TestClassResult> getTestClassResults()
public void resetTestClassResults(@NotNull List<TestClassResult> testClassResults)
ResultsSummary
resetTestClassResults
in interface ResultsSummary
testClassResults
- to setpublic List<CustomDataRow> getCustomBuildDataRows()
BuildResultsSummaryDao
public Long getStageResultId()
public void setStageResultId(Long stageResultId)
public int getRestartCount()
ImmutableResultsSummary
getRestartCount
in interface ImmutableResultsSummary
public int incrementRestartCount()
ResultsSummary
incrementRestartCount
in interface ResultsSummary
public void setRestartCount(int restartCount)
@NotNull public PlanKey getPlanKey()
ImmutableResultsSummary
getPlanKey
in interface ImmutableResultsSummary
public void setPlanKey(PlanKey planKey)
setPlanKey
in interface MutableBuildKeyResultsSummary
public int getFormatVersion()
getFormatVersion
in interface ResultsSummary
public void updateFormatVersion()
ResultsSummary
updateFormatVersion
in interface ResultsSummary
public void setFormatVersion(int formatVersion)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.