@Entity public abstract class AbstractResultsSummary extends BaseResultSummary implements ImmutableDeletable, Deletable, MutableBuildKeyResultsSummary
| Modifier and Type | Field and Description |
|---|---|
protected BuildState |
buildState |
protected static 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 |
protected boolean |
specsResult |
DATE_FORMATCUSTOM_DATA_BUILD_KEYgetPlanKey| Constructor and Description |
|---|
AbstractResultsSummary() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVariableContextItem(@NotNull VariableContextSnapshot variableContext) |
@NotNull List<ArtifactLink> |
getArtifactLinks()
Returns all artifacts associated with this build.
|
Long |
getBuildAgentId()
The id of the latest agent that built the result
|
@Nullable Date |
getBuildCancelledDate()
When the build was cancelled
|
Date |
getBuildCompletedDate()
When the build finished
|
Date |
getBuildDate()
Date when build was passed to execution.
|
@NotNull String |
getBuildKey() |
int |
getBuildNumber()
Get build number
|
@NotNull String |
getBuildResultKey() |
BuildState |
getBuildState()
Build state.
|
@NotNull String |
getChangesListSummary() |
@NotNull 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() |
@NotNull ImmutablePlan |
getImmutablePlan()
Gets the
ImmutablePlan that this result belongs directly belongs to. |
@NotNull Set<LinkedJiraIssue> |
getJiraIssues()
Returns all the JIRA issues linked to this build result
|
List<Labelling> |
getLabellings()
Tags / labels associated with the build
|
LifeCycleState |
getLifeCycleState() |
@Nullable Long |
getLogSize()
Returns the size of log associated with this result.
|
@NotNull Optional<? extends ImmutablePlan> |
getPlanIfExists()
Gets the
ImmutablePlan that this result directly belongs to. |
@NotNull PlanKey |
getPlanKey()
Full key of the plan.
|
@NotNull String |
getPlanName() |
long |
getProcessingDuration()
Duration of actual build processing in miliseconds
|
Date |
getQueueTime()
Date when build was queued.
|
String |
getReasonSummary() |
@NotNull List<RepositoryChangeset> |
getRepositoryChangesets() |
int |
getRestartCount()
Return the number of build restart attempts
|
@NotNull Iterable<VariableContextSnapshot> |
getResultVariables() |
Long |
getStageResultId() |
@NotNull List<ConsumedSubscription> |
getSubscriptions()
Returns list of consumed artifact dependencies
ConsumedSubscription |
@NotNull List<VariableSubstitution> |
getSubstitutedVariables()
Returns immutable list of variables substituted during build execution
|
@NotNull List<VariableSubstitution> |
getSubstitutedVariablesEncrypted()
since 7.0 for internal use only, use
ResultsSummaryVariableAccessor instead |
@NotNull Set<TestClassResult> |
getTestClassResults() |
@NotNull TestResultsSummary |
getTestResultsSummary() |
Long |
getTimeToFix()
A stored version of how long (milli seconds) it took for this build to fix a failure.
|
protected TriggerManager |
getTriggerManager() |
@NotNull TriggerReason |
getTriggerReason()
Why the build was was triggered
|
String |
getTriggerReasonKey() |
@Nullable VariableContextBaseline |
getVariableContextBaseline() |
Long |
getVariableContextBaselineId() |
@NotNull List<VariableContextSnapshot> |
getVariableContextLogs() |
@NotNull 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.
|
boolean |
isSpecsResult() |
void |
resetTestClassResults(@NotNull 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(@Nullable Long logSize)
Sets the size of the log file associated with this result, eg.
|
void |
setOnceOff(boolean onceOff) |
void |
setPlanKey(PlanKey planKey) |
void |
setPlanName(@NotNull String planName) |
void |
setProcessingDuration(long processingDuration) |
void |
setQueueTime(Date queueTime) |
void |
setRebuild(boolean rebuild) |
void |
setRestartCount(int restartCount)
Sets number of build restarts.
|
void |
setSpecsResult(boolean specsResult) |
void |
setStageResultId(Long stageResultId) |
void |
setSubscriptions(List<ConsumedSubscription> subscriptions) |
void |
setTestResultsSummary(@NotNull 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(@Nullable VariableContextBaseline variableContextBaseline) |
protected void |
setVariableContextLogsEncrypted(List<VariableContextSnapshot> variableContextLogs) |
String |
toString() |
void |
updateCustomDataEntry(@NotNull String key,
@NotNull 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(@NotNull LifeCycleState lifeCycleState,
@NotNull 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 boolean specsResult
protected static final 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 @NotNull 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 @NotNull Optional<? extends ImmutablePlan> getPlanIfExists()
ImmutableResultsSummaryImmutablePlan that this result directly belongs to.getPlanIfExists in interface ImmutableResultsSummary@NotNull public @NotNull String getBuildResultKey()
getBuildResultKey in interface ResultsSummary@NotNull public @NotNull String getBuildKey()
getBuildKey in interface ResultsSummary@NotNull public @NotNull String getPlanName()
getPlanName in interface ImmutableResultsSummarypublic void setPlanName(@NotNull
@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 @Nullable 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
@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 @NotNull Set<LinkedJiraIssue> getJiraIssues()
ImmutableResultsSummarygetJiraIssues in interface ImmutableResultsSummarypublic void setJiraIssues(Set<LinkedJiraIssue> jiraIssues)
@NotNull public @NotNull Map<String,String> getCustomBuildData()
ImmutableResultsSummarygetCustomBuildData in interface ImmutableResultsSummarypublic void updateCustomDataEntry(@NotNull
@NotNull String key,
@NotNull
@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 @NotNull List<ArtifactLink> getArtifactLinks()
ImmutableResultsSummarygetArtifactLinks in interface ImmutableResultsSummarypublic void setArtifactLinks(List<ArtifactLink> artifactLinks)
@NotNull public @NotNull List<ConsumedSubscription> getSubscriptions()
ImmutableResultsSummaryConsumedSubscriptiongetSubscriptions in interface ImmutableResultsSummarypublic void setSubscriptions(List<ConsumedSubscription> subscriptions)
public String getTriggerReasonKey()
public void setTriggerReasonKey(String triggerReasonKey)
@NotNull public @NotNull 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 @Nullable Date getBuildCancelledDate()
ImmutableResultsSummarygetBuildCancelledDate in interface ImmutableResultsSummarypublic void setBuildCancelledDate(Date buildCancelledDate)
setBuildCancelledDate in interface ResultsSummary@NotNull public @NotNull 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
@NotNull LifeCycleState lifeCycleState,
@NotNull
@NotNull BuildState buildState)
ResultsSummaryupdateLifeCycleState in interface ResultsSummarylifeCycleState - lifeCycleState to be setbuildState - buildState to be setpublic String getDiscriminator()
public void setDiscriminator(String discriminator)
@NotNull public @NotNull List<RepositoryChangeset> getRepositoryChangesets()
getRepositoryChangesets in interface ImmutableResultsSummary@NotNull public @NotNull List<VariableSubstitution> getSubstitutedVariables()
ImmutableResultsSummarygetSubstitutedVariables in interface ImmutableResultsSummary@NotNull public @NotNull List<VariableSubstitution> getSubstitutedVariablesEncrypted()
ResultsSummaryResultsSummaryVariableAccessor insteadgetSubstitutedVariablesEncrypted in interface ResultsSummary@NotNull public @NotNull List<VariableContextSnapshot> getVariableContextLogs()
getVariableContextLogs in interface ImmutableResultsSummary@NotNull public @NotNull List<VariableContextSnapshot> getVariableContextLogsEncrypted()
ResultsSummaryResultsSummaryVariableAccessor insteadgetVariableContextLogsEncrypted in interface ResultsSummaryprotected void setVariableContextLogsEncrypted(List<VariableContextSnapshot> variableContextLogs)
public void addVariableContextItem(@NotNull
@NotNull VariableContextSnapshot variableContext)
addVariableContextItem in interface ResultsSummary@NotNull public @NotNull Iterable<VariableContextSnapshot> getResultVariables()
public Long getVariableContextBaselineId()
getVariableContextBaselineId in interface ResultsSummarypublic void setVariableContextBaseline(@Nullable
@Nullable VariableContextBaseline variableContextBaseline)
@Nullable public @Nullable VariableContextBaseline getVariableContextBaseline()
@NotNull public @NotNull TestResultsSummary getTestResultsSummary()
getTestResultsSummary in interface ImmutableResultsSummarypublic void setTestResultsSummary(@NotNull
@NotNull TestResultsSummary testResultsSummary)
ResultsSummarysetTestResultsSummary in interface ResultsSummarytestResultsSummary - the test summary information@NotNull public @NotNull Set<TestClassResult> getTestClassResults()
public void resetTestClassResults(@NotNull
@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)
ResultsSummarysetRestartCount in interface ResultsSummary@NotNull public @NotNull 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)
public void setSpecsResult(boolean specsResult)
public boolean isSpecsResult()
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.