Class AbstractResultsSummary
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.resultsummary.BaseResultSummary
-
- com.atlassian.bamboo.resultsummary.AbstractResultsSummary
-
- All Implemented Interfaces:
BambooCustomDataAware,BambooIdProvider,BambooObject,Deletable,ImmutableDeletable,PlanResultKeyProvider,ImmutableResultsSummary,MutableBuildKeyResultsSummary,ResultsSummary,ResultStatisticsProvider,Cloneable,Comparable<ImmutableResultsSummary>
- Direct Known Subclasses:
BuildResultsSummaryImpl,ChainResultsSummaryImpl
@Entity public abstract class AbstractResultsSummary extends BaseResultSummary implements ImmutableDeletable, Deletable, MutableBuildKeyResultsSummary
-
-
Field Summary
Fields Modifier and Type Field Description protected BuildStatebuildStateprotected static Supplier<CachedPlanManager>cachedPlanManagerRefprotected io.atlassian.util.concurrent.ResettableLazyReference<List<VariableSubstitution>>decryptedSubstitutedVariablesReferenceprotected io.atlassian.util.concurrent.ResettableLazyReference<List<VariableContextSnapshot>>decryptedVariableContextLogsReferenceprotected LifeCycleStatelifeCycleStateprotected booleanmarkedForDeletionprotected booleanspecsResult-
Fields inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary
DATE_FORMAT
-
Fields inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary
CUSTOM_DATA_BUILD_KEY
-
Fields inherited from interface com.atlassian.bamboo.plan.PlanResultKeyProvider
getPlanKey
-
-
Constructor Summary
Constructors Constructor Description AbstractResultsSummary()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddVariableContextItem(@NotNull VariableContextSnapshot variableContext)@NotNull List<ArtifactLink>getArtifactLinks()Returns all artifacts associated with this build.LonggetBuildAgentId()The id of the latest agent that built the result@Nullable AgentTypegetBuildAgentType()The type of the latest agent that built the result@Nullable DategetBuildCancelledDate()When the build was cancelledDategetBuildCompletedDate()When the build finishedDategetBuildDate()Date when build was passed to execution.@NotNull StringgetBuildKey()intgetBuildNumber()Get build number@NotNull StringgetBuildResultKey()BuildStategetBuildState()Build state.@NotNull StringgetChangesListSummary()@NotNull Map<String,String>getCustomBuildData()Custom data map to store random metadata about the buildList<CustomDataRow>getCustomBuildDataRows()This method is not intended to be used outsideBuildResultsSummaryDaoDeltaStategetDeltaState()Gets theDeltaStateof the summary.StringgetDiscriminator()longgetDuration()Duration of the build in millisecondsintgetFormatVersion()@NotNull ImmutablePlangetImmutablePlan()Gets theImmutablePlanthat this result belongs directly belongs to.@NotNull Set<LinkedJiraIssue>getJiraIssues()Returns all the JIRA issues linked to this build resultList<Labelling>getLabellings()Tags / labels associated with the buildLifeCycleStategetLifeCycleState()@Nullable LonggetLogSize()Returns the size of log associated with this result.@NotNull Optional<? extends ImmutablePlan>getPlanIfExists()Gets theImmutablePlanthat this result directly belongs to.@NotNull PlanKeygetPlanKey()Full key of the plan.@NotNull StringgetPlanName()longgetProcessingDuration()Duration of actual build processing in milisecondsDategetQueueTime()Date when build was queued.StringgetReasonSummary()@NotNull List<RepositoryChangeset>getRepositoryChangesets()intgetRestartCount()Return the number of build restart attempts@NotNull Iterable<VariableContextSnapshot>getResultVariables()LonggetStageResultId()@NotNull List<ConsumedSubscription>getSubscriptions()Returns list of consumed artifact dependenciesConsumedSubscription@NotNull List<VariableSubstitution>getSubstitutedVariables()Returns immutable list of variables substituted during build execution@NotNull List<VariableSubstitution>getSubstitutedVariablesEncrypted()since 7.0 for internal use only, useResultsSummaryVariableAccessorinstead@NotNull Set<TestClassResult>getTestClassResults()@NotNull TestResultsSummarygetTestResultsSummary()LonggetTimeToFix()A stored version of how long (milli seconds) it took for this build to fix a failure.protected TriggerManagergetTriggerManager()@NotNull TriggerReasongetTriggerReason()Why the build was was triggeredStringgetTriggerReasonKey()@Nullable VariableContextBaselinegetVariableContextBaseline()LonggetVariableContextBaselineId()@NotNull List<VariableContextSnapshot>getVariableContextLogs()@NotNull List<VariableContextSnapshot>getVariableContextLogsEncrypted()since 7.0 for internal use only, useResultsSummaryVariableAccessorinsteadintincrementRestartCount()Increments number of build restarts and returns the new valuebooleanisCustomBuild()Indicates that this result was run with custom variables (some of the variables were overwritten) - used to display indicator in UIbooleanisOnceOff()Indicates that this result was run with custom revision and should be considered as 'once-off' when calculating telemetry and other stuffbooleanisRebuild()Indicates that this result was rebuild via "re-run this build" action.booleanisSpecsResult()voidresetTestClassResults(@NotNull List<TestClassResult> testClassResults)Overrides all current testClassResults with the new onesvoidsetArtifactLinks(List<ArtifactLink> artifactLinks)voidsetBuildAgentId(long buildAgentId)voidsetBuildAgentType(@Nullable AgentType agentType)Sets the build agent type.voidsetBuildCancelledDate(Date buildCancelledDate)voidsetBuildCompletedDate(Date buildCompletedDate)voidsetBuildDate(Date buildDate)voidsetBuildKey(String buildKey)voidsetBuildNumber(int buildNumber)voidsetBuildState(BuildState buildState)voidsetComments(List<Comment> comments)voidsetCustomBuild(boolean customBuild)voidsetCustomBuildData(Map<String,String> customBuildData)voidsetDeltaState(DeltaState deltaState)Sets theDeltaStatefor the summary.voidsetDiscriminator(String discriminator)voidsetDuration(long duration)voidsetFormatVersion(int formatVersion)voidsetJiraIssues(Set<LinkedJiraIssue> jiraIssues)voidsetLabellings(List<Labelling> labellings)voidsetLifeCycleState(LifeCycleState lifeCycleState)voidsetLogSize(@Nullable Long logSize)Sets the size of the log file associated with this result, eg.voidsetOnceOff(boolean onceOff)voidsetPlanKey(PlanKey planKey)voidsetPlanName(@NotNull String planName)voidsetProcessingDuration(long processingDuration)voidsetQueueTime(Date queueTime)voidsetRebuild(boolean rebuild)voidsetRestartCount(int restartCount)Sets number of build restarts.voidsetSpecsResult(boolean specsResult)voidsetStageResultId(Long stageResultId)voidsetSubscriptions(List<ConsumedSubscription> subscriptions)voidsetTestResultsSummary(@NotNull TestResultsSummary testResultsSummary)Set the test summary information from this buildvoidsetTimeToFix(Long timeToFix)A stored version of how long (milli seconds) it took for this build to fix a failure.voidsetTriggerReason(TriggerReason triggerReason)voidsetTriggerReasonKey(String triggerReasonKey)voidsetVariableContextBaseline(@Nullable VariableContextBaseline variableContextBaseline)protected voidsetVariableContextLogsEncrypted(List<VariableContextSnapshot> variableContextLogs)StringtoString()voidupdateCustomDataEntry(@NotNull String key, @NotNull String value)Add or modify key value pair to Object's custom data map.voidupdateFormatVersion()Sets format version to current Bamboo build number.voidupdateLifeCycleState(@NotNull LifeCycleState lifeCycleState, @NotNull BuildState buildState)Update lifeCycleState and buildState in one go.-
Methods inherited from class com.atlassian.bamboo.resultsummary.BaseResultSummary
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
-
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletion
-
Methods inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary
getArtifactLinksThatExist, 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, isWaiting
-
Methods inherited from interface com.atlassian.bamboo.plan.PlanResultKeyProvider
getPlanResultKey
-
Methods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider
getStatDate
-
-
-
-
Field Detail
-
markedForDeletion
protected boolean markedForDeletion
-
buildState
protected BuildState buildState
-
lifeCycleState
protected LifeCycleState lifeCycleState
-
specsResult
protected boolean specsResult
-
cachedPlanManagerRef
protected static final Supplier<CachedPlanManager> cachedPlanManagerRef
-
decryptedVariableContextLogsReference
protected final io.atlassian.util.concurrent.ResettableLazyReference<List<VariableContextSnapshot>> decryptedVariableContextLogsReference
-
decryptedSubstitutedVariablesReference
protected final io.atlassian.util.concurrent.ResettableLazyReference<List<VariableSubstitution>> decryptedSubstitutedVariablesReference
-
-
Method Detail
-
getImmutablePlan
@NotNull public @NotNull ImmutablePlan getImmutablePlan()
Description copied from interface:ResultsSummaryGets theImmutablePlanthat this result belongs directly belongs to. Since version 6.9 it is possible thatImmutableJobno longer exists but its results do, therefore it is recommended to useImmutableResultsSummary.getPlanIfExists()instead when operating on job results.- Specified by:
getImmutablePlanin interfaceImmutableResultsSummary- Specified by:
getImmutablePlanin interfaceResultsSummary- Returns:
- the owning plan for the result
-
getPlanIfExists
@NotNull public @NotNull Optional<? extends ImmutablePlan> getPlanIfExists()
Description copied from interface:ImmutableResultsSummaryGets theImmutablePlanthat this result directly belongs to.- Specified by:
getPlanIfExistsin interfaceImmutableResultsSummary- Returns:
- the owning plan for the result or empty if id doesn't exist.
-
getBuildResultKey
@NotNull public @NotNull String getBuildResultKey()
- Specified by:
getBuildResultKeyin interfaceResultsSummary- Returns:
- full build result key e.g. BAM-MAIN-100
-
getBuildKey
@NotNull public @NotNull String getBuildKey()
- Specified by:
getBuildKeyin interfaceResultsSummary- Returns:
- full key of the plan. e.g BAM-MAIN
-
getPlanName
@NotNull public @NotNull String getPlanName()
- Specified by:
getPlanNamein interfaceImmutableResultsSummary- Returns:
- short plan name
-
setPlanName
public void setPlanName(@NotNull @NotNull String planName)
-
getReasonSummary
public String getReasonSummary()
- Specified by:
getReasonSummaryin interfaceImmutableResultsSummary
-
setBuildKey
public void setBuildKey(String buildKey)
- Specified by:
setBuildKeyin interfaceMutableBuildKeyResultsSummary
-
getBuildNumber
public int getBuildNumber()
Description copied from interface:ResultStatisticsProviderGet build number- Specified by:
getBuildNumberin interfaceResultStatisticsProvider- Returns:
- build number of the described build
-
setBuildNumber
public void setBuildNumber(int buildNumber)
-
getBuildDate
public Date getBuildDate()
Date when build was passed to execution. For chain result this date is set when the first job is started.- Specified by:
getBuildDatein interfaceResultStatisticsProvider- Returns:
-
setBuildDate
public void setBuildDate(Date buildDate)
- Specified by:
setBuildDatein interfaceResultsSummary
-
getQueueTime
public Date getQueueTime()
Date when build was queued. For chain result this date is set when the whole chain is created - as chain is created in QUEUED state.- Specified by:
getQueueTimein interfaceImmutableResultsSummary- Returns:
-
setQueueTime
public void setQueueTime(Date queueTime)
- Specified by:
setQueueTimein interfaceResultsSummary
-
getBuildCompletedDate
public Date getBuildCompletedDate()
Description copied from interface:ImmutableResultsSummaryWhen the build finished- Specified by:
getBuildCompletedDatein interfaceImmutableResultsSummary- Returns:
-
setBuildCompletedDate
public void setBuildCompletedDate(Date buildCompletedDate)
- Specified by:
setBuildCompletedDatein interfaceResultsSummary
-
getDeltaState
public DeltaState getDeltaState()
Description copied from interface:ImmutableResultsSummaryGets theDeltaStateof the summary. It can be a build that fixes, breaks, failing, successful. Provides a status relative to the previous summary.- Specified by:
getDeltaStatein interfaceImmutableResultsSummary- Returns:
-
setDeltaState
public void setDeltaState(DeltaState deltaState)
Description copied from interface:ResultsSummarySets theDeltaStatefor the summary. Provides a status relative to the previous summary.- Specified by:
setDeltaStatein interfaceResultsSummary- Parameters:
deltaState- - the relative status for this summary
-
isOnceOff
public boolean isOnceOff()
Description copied from interface:ImmutableResultsSummaryIndicates that this result was run with custom revision and should be considered as 'once-off' when calculating telemetry and other stuff- Specified by:
isOnceOffin interfaceImmutableResultsSummary- Returns:
-
setOnceOff
public void setOnceOff(boolean onceOff)
- Specified by:
setOnceOffin interfaceResultsSummary
-
isCustomBuild
public boolean isCustomBuild()
Description copied from interface:ImmutableResultsSummaryIndicates that this result was run with custom variables (some of the variables were overwritten) - used to display indicator in UI- Specified by:
isCustomBuildin interfaceImmutableResultsSummary- Returns:
-
setCustomBuild
public void setCustomBuild(boolean customBuild)
- Specified by:
setCustomBuildin interfaceResultsSummary
-
isRebuild
public boolean isRebuild()
Description copied from interface:ImmutableResultsSummaryIndicates that this result was rebuild via "re-run this build" action.- Specified by:
isRebuildin interfaceImmutableResultsSummary- Returns:
-
setRebuild
public void setRebuild(boolean rebuild)
- Specified by:
setRebuildin interfaceResultsSummary
-
getLogSize
@Nullable public @Nullable Long getLogSize()
Description copied from interface:ImmutableResultsSummaryReturns the size of log associated with this result.For a
BuildResultsSummarythis method will return size of the log produced by theJob.For a
ChainResultsSummarythe returned value will be equal to the maximum log size produced by thisChain'sJobs.- Specified by:
getLogSizein interfaceImmutableResultsSummary- Returns:
- the log size or null, if the value is not known
-
setLogSize
public void setLogSize(@Nullable @Nullable Long logSize)Description copied from interface:ResultsSummarySets the size of the log file associated with this result, eg. size of the log produced by aJobor largest log produced byChain'sJobs.- Specified by:
setLogSizein interfaceResultsSummary- Parameters:
logSize- size of the largest log associated with the result (use null if unknown)
-
getJiraIssues
@NotNull public @NotNull Set<LinkedJiraIssue> getJiraIssues()
Description copied from interface:ImmutableResultsSummaryReturns all the JIRA issues linked to this build result- Specified by:
getJiraIssuesin interfaceImmutableResultsSummary- Returns:
-
setJiraIssues
public void setJiraIssues(Set<LinkedJiraIssue> jiraIssues)
-
getCustomBuildData
@NotNull public @NotNull Map<String,String> getCustomBuildData()
Description copied from interface:ImmutableResultsSummaryCustom data map to store random metadata about the build- Specified by:
getCustomBuildDatain interfaceImmutableResultsSummary- Returns:
-
updateCustomDataEntry
public void updateCustomDataEntry(@NotNull @NotNull String key, @NotNull @NotNull String value)Description copied from interface:BambooCustomDataAwareAdd or modify key value pair to Object's custom data map.- Specified by:
updateCustomDataEntryin interfaceBambooCustomDataAware- Parameters:
key- key to addvalue- value to add
-
getTimeToFix
public Long getTimeToFix()
Description copied from interface:ImmutableResultsSummaryA stored version of how long (milli seconds) it took for this build to fix a failure.- Specified by:
getTimeToFixin interfaceImmutableResultsSummary- Returns:
- Null if not a fixing build
-
setTimeToFix
public void setTimeToFix(Long timeToFix)
Description copied from interface:ResultsSummaryA stored version of how long (milli seconds) it took for this build to fix a failure.- Specified by:
setTimeToFixin interfaceResultsSummary- Parameters:
timeToFix- how long (milli seconds) it took for this build to fix a failure.
-
getLabellings
public List<Labelling> getLabellings()
Description copied from interface:ImmutableResultsSummaryTags / labels associated with the build- Specified by:
getLabellingsin interfaceImmutableResultsSummary- Returns:
-
getArtifactLinks
@NotNull public @NotNull List<ArtifactLink> getArtifactLinks()
Description copied from interface:ImmutableResultsSummaryReturns all artifacts associated with this build. Even if the files don't exist- Specified by:
getArtifactLinksin interfaceImmutableResultsSummary- Returns:
-
setArtifactLinks
public void setArtifactLinks(List<ArtifactLink> artifactLinks)
-
getSubscriptions
@NotNull public @NotNull List<ConsumedSubscription> getSubscriptions()
Description copied from interface:ImmutableResultsSummaryReturns list of consumed artifact dependenciesConsumedSubscription- Specified by:
getSubscriptionsin interfaceImmutableResultsSummary- Returns:
-
setSubscriptions
public void setSubscriptions(List<ConsumedSubscription> subscriptions)
-
getTriggerReasonKey
public String getTriggerReasonKey()
-
setTriggerReasonKey
public void setTriggerReasonKey(String triggerReasonKey)
-
getTriggerReason
@NotNull public @NotNull TriggerReason getTriggerReason()
Description copied from interface:ImmutableResultsSummaryWhy the build was was triggered- Specified by:
getTriggerReasonin interfaceImmutableResultsSummary
-
setTriggerReason
public void setTriggerReason(TriggerReason triggerReason)
- Specified by:
setTriggerReasonin interfaceResultsSummary
-
getBuildAgentId
public Long getBuildAgentId()
Description copied from interface:ImmutableResultsSummaryThe id of the latest agent that built the result- Specified by:
getBuildAgentIdin interfaceImmutableResultsSummary- Returns:
- Null if no agents involved or unknown
-
getBuildAgentType
@Nullable public @Nullable AgentType getBuildAgentType()
Description copied from interface:ImmutableResultsSummaryThe type of the latest agent that built the result- Specified by:
getBuildAgentTypein interfaceImmutableResultsSummary- Returns:
- Null if no agents involved or unknown
-
setBuildAgentId
public void setBuildAgentId(long buildAgentId)
- Specified by:
setBuildAgentIdin interfaceResultsSummary
-
setBuildAgentType
public void setBuildAgentType(@Nullable @Nullable AgentType agentType)Description copied from interface:ResultsSummarySets the build agent type.- Specified by:
setBuildAgentTypein interfaceResultsSummary
-
getDuration
public long getDuration()
Description copied from interface:ImmutableResultsSummaryDuration of the build in milliseconds- Specified by:
getDurationin interfaceImmutableResultsSummary- Specified by:
getDurationin interfaceResultStatisticsProvider- Returns:
- duration of the build in milliseconds
-
setDuration
public void setDuration(long duration)
- Specified by:
setDurationin interfaceResultsSummary- Parameters:
duration- duration of the build in milliseconds
-
getProcessingDuration
public long getProcessingDuration()
Description copied from interface:ImmutableResultsSummaryDuration of actual build processing in miliseconds- Specified by:
getProcessingDurationin interfaceImmutableResultsSummary- Specified by:
getProcessingDurationin interfaceResultStatisticsProvider- Returns:
- processing duration of the build in milliseconds
-
setProcessingDuration
public void setProcessingDuration(long processingDuration)
- Specified by:
setProcessingDurationin interfaceResultsSummary
-
getBuildCancelledDate
@Nullable public @Nullable Date getBuildCancelledDate()
Description copied from interface:ImmutableResultsSummaryWhen the build was cancelled- Specified by:
getBuildCancelledDatein interfaceImmutableResultsSummary- Returns:
- date of build cancellation or null if build was not cancelled
-
setBuildCancelledDate
public void setBuildCancelledDate(Date buildCancelledDate)
- Specified by:
setBuildCancelledDatein interfaceResultsSummary
-
getChangesListSummary
@NotNull public @NotNull String getChangesListSummary()
- Specified by:
getChangesListSummaryin interfaceImmutableResultsSummary
-
getTriggerManager
protected TriggerManager getTriggerManager()
- Specified by:
getTriggerManagerin classBaseResultSummary
-
getBuildState
public BuildState getBuildState()
Description copied from interface:ResultStatisticsProviderBuild state.- Specified by:
getBuildStatein interfaceResultStatisticsProvider- Returns:
- build state
-
setBuildState
public void setBuildState(BuildState buildState)
-
getLifeCycleState
public LifeCycleState getLifeCycleState()
- Specified by:
getLifeCycleStatein interfaceImmutableResultsSummary
-
setLifeCycleState
public void setLifeCycleState(LifeCycleState lifeCycleState)
-
updateLifeCycleState
public void updateLifeCycleState(@NotNull @NotNull LifeCycleState lifeCycleState, @NotNull @NotNull BuildState buildState)Description copied from interface:ResultsSummaryUpdate lifeCycleState and buildState in one go. Can throw IllegalArgumentException when values passed make no sense: - lifeCycleState == LifeCycleState.NOT_BUILT && buildState != BuildState.UNKNOWN- Specified by:
updateLifeCycleStatein interfaceResultsSummary- Parameters:
lifeCycleState- lifeCycleState to be setbuildState- buildState to be set
-
getDiscriminator
public String getDiscriminator()
-
setDiscriminator
public void setDiscriminator(String discriminator)
-
getRepositoryChangesets
@NotNull public @NotNull List<RepositoryChangeset> getRepositoryChangesets()
- Specified by:
getRepositoryChangesetsin interfaceImmutableResultsSummary
-
getSubstitutedVariables
@NotNull public @NotNull List<VariableSubstitution> getSubstitutedVariables()
Description copied from interface:ImmutableResultsSummaryReturns immutable list of variables substituted during build execution- Specified by:
getSubstitutedVariablesin interfaceImmutableResultsSummary
-
getSubstitutedVariablesEncrypted
@NotNull public @NotNull List<VariableSubstitution> getSubstitutedVariablesEncrypted()
Description copied from interface:ResultsSummarysince 7.0 for internal use only, useResultsSummaryVariableAccessorinstead- Specified by:
getSubstitutedVariablesEncryptedin interfaceResultsSummary
-
getVariableContextLogs
@NotNull public @NotNull List<VariableContextSnapshot> getVariableContextLogs()
- Specified by:
getVariableContextLogsin interfaceImmutableResultsSummary
-
getVariableContextLogsEncrypted
@NotNull public @NotNull List<VariableContextSnapshot> getVariableContextLogsEncrypted()
Description copied from interface:ResultsSummarysince 7.0 for internal use only, useResultsSummaryVariableAccessorinstead- Specified by:
getVariableContextLogsEncryptedin interfaceResultsSummary
-
setVariableContextLogsEncrypted
protected void setVariableContextLogsEncrypted(List<VariableContextSnapshot> variableContextLogs)
-
addVariableContextItem
public void addVariableContextItem(@NotNull @NotNull VariableContextSnapshot variableContext)- Specified by:
addVariableContextItemin interfaceResultsSummary
-
getResultVariables
@NotNull public @NotNull Iterable<VariableContextSnapshot> getResultVariables()
-
getVariableContextBaselineId
public Long getVariableContextBaselineId()
- Specified by:
getVariableContextBaselineIdin interfaceResultsSummary
-
setVariableContextBaseline
public void setVariableContextBaseline(@Nullable @Nullable VariableContextBaseline variableContextBaseline)
-
getVariableContextBaseline
@Nullable public @Nullable VariableContextBaseline getVariableContextBaseline()
-
getTestResultsSummary
@NotNull public @NotNull TestResultsSummary getTestResultsSummary()
- Specified by:
getTestResultsSummaryin interfaceImmutableResultsSummary- Returns:
- a summary of all the tests that ran in this build.
-
setTestResultsSummary
public void setTestResultsSummary(@NotNull @NotNull TestResultsSummary testResultsSummary)Description copied from interface:ResultsSummarySet the test summary information from this build- Specified by:
setTestResultsSummaryin interfaceResultsSummary- Parameters:
testResultsSummary- the test summary information
-
getTestClassResults
@NotNull public @NotNull Set<TestClassResult> getTestClassResults()
-
resetTestClassResults
public void resetTestClassResults(@NotNull @NotNull List<TestClassResult> testClassResults)Description copied from interface:ResultsSummaryOverrides all current testClassResults with the new ones- Specified by:
resetTestClassResultsin interfaceResultsSummary- Parameters:
testClassResults- to set
-
getCustomBuildDataRows
public List<CustomDataRow> getCustomBuildDataRows()
This method is not intended to be used outsideBuildResultsSummaryDao- Returns:
-
getStageResultId
public Long getStageResultId()
-
setStageResultId
public void setStageResultId(Long stageResultId)
-
getRestartCount
public int getRestartCount()
Description copied from interface:ImmutableResultsSummaryReturn the number of build restart attempts- Specified by:
getRestartCountin interfaceImmutableResultsSummary- Returns:
-
incrementRestartCount
public int incrementRestartCount()
Description copied from interface:ResultsSummaryIncrements number of build restarts and returns the new value- Specified by:
incrementRestartCountin interfaceResultsSummary
-
setRestartCount
public void setRestartCount(int restartCount)
Description copied from interface:ResultsSummarySets number of build restarts.- Specified by:
setRestartCountin interfaceResultsSummary
-
getPlanKey
@NotNull public @NotNull PlanKey getPlanKey()
Description copied from interface:ImmutableResultsSummaryFull key of the plan. e.g BAM-MAIN- Specified by:
getPlanKeyin interfaceImmutableResultsSummary
-
setPlanKey
public void setPlanKey(PlanKey planKey)
- Specified by:
setPlanKeyin interfaceMutableBuildKeyResultsSummary
-
getFormatVersion
public int getFormatVersion()
- Specified by:
getFormatVersionin interfaceResultsSummary- Returns:
- build number of Bamboo version in which this result was created
-
updateFormatVersion
public void updateFormatVersion()
Description copied from interface:ResultsSummarySets format version to current Bamboo build number.- Specified by:
updateFormatVersionin interfaceResultsSummary
-
setFormatVersion
public void setFormatVersion(int formatVersion)
-
setSpecsResult
public void setSpecsResult(boolean specsResult)
-
isSpecsResult
public boolean isSpecsResult()
-
-