@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 io.atlassian.util.concurrent.ResettableLazyReference<List<VariableSubstitution>> |
decryptedSubstitutedVariablesReference |
protected io.atlassian.util.concurrent.ResettableLazyReference<List<VariableContextSnapshot>> |
decryptedVariableContextLogsReference |
protected LifeCycleState |
lifeCycleState |
protected boolean |
markedForDeletion |
DATE_FORMATCUSTOM_DATA_BUILD_KEYgetPlanKey| Constructor and Description |
|---|
AbstractResultsSummary() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariableContextItem(VariableContextSnapshot variableContext) |
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
ImmutablePlan 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.
|
Optional<? extends ImmutablePlan> |
getPlanIfExists()
Gets the
ImmutablePlan that this result directly belongs to. |
PlanKey |
getPlanKey()
Full key of the plan.
|
String |
getPlanName() |
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 immutable list of variables substituted during build execution
|
List<VariableSubstitution> |
getSubstitutedVariablesEncrypted()
since 7.0 for internal use only, use
ResultsSummaryVariableAccessor instead |
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() |
VariableContextBaseline |
getVariableContextBaseline() |
Long |
getVariableContextBaselineId() |
List<VariableContextSnapshot> |
getVariableContextLogs() |
List<VariableContextSnapshot> |
getVariableContextLogsEncrypted()
since 7.0 for internal use only, use
ResultsSummaryVariableAccessor instead |
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 |
setPlanName(String planName) |
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 |
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) |
protected void |
setVariableContextLogsEncrypted(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, isWaitingclone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDatefinalize, getClass, notify, notifyAll, wait, wait, waitsetMarkedForDeletionsetIdgetIdisMarkedForDeletiongetArtifactLinksThatExist, getBuildTime, getCommits, getDurationDescription, getFixingJiraIssues, getFullPlanName, getImmutableChain, 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, isWaitinggetStatDatecompareTogetPlanResultKeyprotected boolean markedForDeletion
protected BuildState buildState
protected LifeCycleState lifeCycleState
protected static final com.google.common.base.Supplier<CachedPlanManager> cachedPlanManagerRef
protected final io.atlassian.util.concurrent.ResettableLazyReference<List<VariableContextSnapshot>> decryptedVariableContextLogsReference
protected final io.atlassian.util.concurrent.ResettableLazyReference<List<VariableSubstitution>> decryptedSubstitutedVariablesReference
@NotNull public ImmutablePlan getImmutablePlan()
ResultsSummaryImmutablePlan that this result belongs directly belongs to.
Since version 6.9 it is possible that ImmutableJob no longer exists but its results do, therefore
it is recommended to use ImmutableResultsSummary.getPlanIfExists() instead when operating on job results.getImmutablePlan in interface ImmutableResultsSummarygetImmutablePlan in interface ResultsSummary@NotNull public Optional<? extends ImmutablePlan> getPlanIfExists()
ImmutableResultsSummaryImmutablePlan that this result directly belongs to.getPlanIfExists in interface ImmutableResultsSummary@NotNull public String getBuildResultKey()
getBuildResultKey in interface ResultsSummary@NotNull public String getBuildKey()
getBuildKey in interface ResultsSummary@NotNull public String getPlanName()
getPlanName in interface ImmutableResultsSummarypublic void setPlanName(@NotNull
String planName)
public String getReasonSummary()
getReasonSummary in interface ImmutableResultsSummarypublic void setBuildKey(String buildKey)
setBuildKey in interface MutableBuildKeyResultsSummarypublic int getBuildNumber()
ResultStatisticsProvidergetBuildNumber in interface ResultStatisticsProviderpublic void setBuildNumber(int buildNumber)
public Date getBuildDate()
getBuildDate in interface ResultStatisticsProviderpublic void setBuildDate(Date buildDate)
setBuildDate in interface ResultsSummarypublic Date getQueueTime()
getQueueTime in interface ImmutableResultsSummarypublic void setQueueTime(Date queueTime)
setQueueTime in interface ResultsSummarypublic Date getBuildCompletedDate()
ImmutableResultsSummarygetBuildCompletedDate in interface ImmutableResultsSummarypublic void setBuildCompletedDate(Date buildCompletedDate)
setBuildCompletedDate in interface ResultsSummarypublic DeltaState getDeltaState()
ImmutableResultsSummaryDeltaState of the summary. It can be a build that fixes, breaks, failing, successful. Provides a status
relative to the previous summary.getDeltaState in interface ImmutableResultsSummarypublic void setDeltaState(DeltaState deltaState)
ResultsSummaryDeltaState for the summary. Provides a status relative to the previous summary.setDeltaState in interface ResultsSummarydeltaState - - the relative status for this summarypublic boolean isOnceOff()
ImmutableResultsSummaryisOnceOff in interface ImmutableResultsSummarypublic void setOnceOff(boolean onceOff)
setOnceOff in interface ResultsSummarypublic boolean isCustomBuild()
ImmutableResultsSummaryisCustomBuild in interface ImmutableResultsSummarypublic void setCustomBuild(boolean customBuild)
setCustomBuild in interface ResultsSummarypublic boolean isRebuild()
ImmutableResultsSummaryisRebuild in interface ImmutableResultsSummarypublic 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 Jobs.
getLogSize in interface ImmutableResultsSummarypublic void setLogSize(@Nullable
Long logSize)
ResultsSummaryJob or
largest log produced by Chain's Jobs.setLogSize in interface ResultsSummarylogSize - size of the largest log associated with the result (use null if unknown)@NotNull public Set<LinkedJiraIssue> getJiraIssues()
ImmutableResultsSummarygetJiraIssues in interface ImmutableResultsSummarypublic void setJiraIssues(Set<LinkedJiraIssue> jiraIssues)
@NotNull public Map<String,String> getCustomBuildData()
ImmutableResultsSummarygetCustomBuildData in interface ImmutableResultsSummarypublic void updateCustomDataEntry(@NotNull
String key,
@NotNull
String value)
BambooCustomDataAwareupdateCustomDataEntry in interface BambooCustomDataAwarepublic Long getTimeToFix()
ImmutableResultsSummarygetTimeToFix in interface ImmutableResultsSummarypublic void setTimeToFix(Long timeToFix)
ResultsSummarysetTimeToFix in interface ResultsSummarytimeToFix - how long (milli seconds) it took for this build to fix a failure.public List<Labelling> getLabellings()
ImmutableResultsSummarygetLabellings in interface ImmutableResultsSummary@NotNull public List<ArtifactLink> getArtifactLinks()
ImmutableResultsSummarygetArtifactLinks in interface ImmutableResultsSummarypublic void setArtifactLinks(List<ArtifactLink> artifactLinks)
@NotNull public List<ConsumedSubscription> getSubscriptions()
ImmutableResultsSummaryConsumedSubscriptiongetSubscriptions in interface ImmutableResultsSummarypublic void setSubscriptions(List<ConsumedSubscription> subscriptions)
public String getTriggerReasonKey()
public void setTriggerReasonKey(String triggerReasonKey)
@NotNull public TriggerReason getTriggerReason()
ImmutableResultsSummarygetTriggerReason in interface ImmutableResultsSummarypublic void setTriggerReason(TriggerReason triggerReason)
setTriggerReason in interface ResultsSummarypublic Long getBuildAgentId()
ImmutableResultsSummarygetBuildAgentId in interface ImmutableResultsSummarypublic void setBuildAgentId(long buildAgentId)
setBuildAgentId in interface ResultsSummarypublic long getDuration()
ImmutableResultsSummarygetDuration in interface ImmutableResultsSummarygetDuration in interface ResultStatisticsProviderpublic void setDuration(long duration)
setDuration in interface ResultsSummaryduration - duration of the build in millisecondspublic long getProcessingDuration()
ImmutableResultsSummarygetProcessingDuration in interface ImmutableResultsSummarygetProcessingDuration in interface ResultStatisticsProviderpublic void setProcessingDuration(long processingDuration)
setProcessingDuration in interface ResultsSummary@Nullable public Date getBuildCancelledDate()
ImmutableResultsSummarygetBuildCancelledDate in interface ImmutableResultsSummarypublic void setBuildCancelledDate(Date buildCancelledDate)
setBuildCancelledDate in interface ResultsSummary@NotNull public String getChangesListSummary()
getChangesListSummary in interface ImmutableResultsSummaryprotected TriggerManager getTriggerManager()
getTriggerManager in class BaseResultSummarypublic BuildState getBuildState()
ResultStatisticsProvidergetBuildState in interface ResultStatisticsProviderpublic void setBuildState(BuildState buildState)
public LifeCycleState getLifeCycleState()
getLifeCycleState in interface ImmutableResultsSummarypublic void setLifeCycleState(LifeCycleState lifeCycleState)
public void updateLifeCycleState(@NotNull
LifeCycleState lifeCycleState,
@NotNull
BuildState buildState)
ResultsSummaryupdateLifeCycleState in interface ResultsSummarylifeCycleState - 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()
ImmutableResultsSummarygetSubstitutedVariables in interface ImmutableResultsSummary@NotNull public List<VariableSubstitution> getSubstitutedVariablesEncrypted()
ResultsSummaryResultsSummaryVariableAccessor insteadgetSubstitutedVariablesEncrypted in interface ResultsSummary@NotNull public List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs in interface ImmutableResultsSummary@NotNull public List<VariableContextSnapshot> getVariableContextLogsEncrypted()
ResultsSummaryResultsSummaryVariableAccessor insteadgetVariableContextLogsEncrypted in interface ResultsSummaryprotected void setVariableContextLogsEncrypted(List<VariableContextSnapshot> variableContextLogs)
public void addVariableContextItem(@NotNull
VariableContextSnapshot variableContext)
addVariableContextItem in interface ResultsSummary@NotNull public Iterable<VariableContextSnapshot> getResultVariables()
public Long getVariableContextBaselineId()
getVariableContextBaselineId in interface ResultsSummarypublic void setVariableContextBaseline(@Nullable
VariableContextBaseline variableContextBaseline)
@Nullable public VariableContextBaseline getVariableContextBaseline()
@NotNull public TestResultsSummary getTestResultsSummary()
getTestResultsSummary in interface ImmutableResultsSummarypublic void setTestResultsSummary(@NotNull
TestResultsSummary testResultsSummary)
ResultsSummarysetTestResultsSummary in interface ResultsSummarytestResultsSummary - the test summary information@NotNull public List<TestClassResult> getTestClassResults()
public void resetTestClassResults(@NotNull
List<TestClassResult> testClassResults)
ResultsSummaryresetTestClassResults in interface ResultsSummarytestClassResults - to setpublic List<CustomDataRow> getCustomBuildDataRows()
BuildResultsSummaryDaopublic Long getStageResultId()
public void setStageResultId(Long stageResultId)
public int getRestartCount()
ImmutableResultsSummarygetRestartCount in interface ImmutableResultsSummarypublic int incrementRestartCount()
ResultsSummaryincrementRestartCount in interface ResultsSummarypublic void setRestartCount(int restartCount)
@NotNull public PlanKey getPlanKey()
ImmutableResultsSummarygetPlanKey in interface ImmutableResultsSummarypublic void setPlanKey(PlanKey planKey)
setPlanKey in interface MutableBuildKeyResultsSummarypublic int getFormatVersion()
getFormatVersion in interface ResultsSummarypublic void updateFormatVersion()
ResultsSummaryupdateFormatVersion in interface ResultsSummarypublic void setFormatVersion(int formatVersion)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.