Interface ResultsSummary
- All Superinterfaces:
BambooCustomDataAware,BambooIdProvider,BambooObject,Comparable<ImmutableResultsSummary>,Deletable,ImmutableDeletable,ImmutableResultsSummary,PlanResultKeyProvider,ResultStatisticsProvider
- All Known Subinterfaces:
BuildResultsSummary,ChainResultsSummary,MutableBuildKeyResultsSummary
- All Known Implementing Classes:
AbstractResultsSummary,BuildResultsSummaryImpl,ChainResultsSummaryImpl
@PublicApi
public interface ResultsSummary
extends BambooObject, Deletable, ImmutableResultsSummary, BambooCustomDataAware, PlanResultKeyProvider
Used to store the result of all
Plan executions- Since:
- 2.7
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary
CUSTOM_DATA_BUILD_KEY -
Method Summary
Modifier and TypeMethodDescriptionvoidaddVariableContextItem(@NotNull VariableContextSnapshot variableContext) @NotNull StringDeprecated.@NotNull StringDeprecated.since 4.3, useImmutableResultsSummary.getPlanResultKey()int@NotNull ImmutablePlanGets theImmutablePlanthat this result belongs directly belongs to.@NotNull List<VariableSubstitution>Deprecated.returns empty list for any result created with version 5.7 or later@Nullable Long@NotNull List<VariableContextSnapshot>since 7.0 for internal use only, useResultsSummaryVariableAccessorinsteadintIncrements number of build restarts and returns the new valuevoidresetTestClassResults(@NotNull List<TestClassResult> testClassResults) Overrides all current testClassResults with the new onesvoidsetBuildAgentId(long buildAgentId) voidsetBuildAgentType(@Nullable AgentType agentType) Sets the build agent type.voidsetBuildCancelledDate(Date buildCancelledDate) voidsetBuildCompletedDate(@Nullable Date completionDate) voidsetBuildDate(Date buildDate) voidsetCustomBuild(boolean customBuild) voidsetDeltaState(DeltaState deltaState) Sets theDeltaStatefor the summary.voidsetDuration(long duration) voidsetLogSize(@Nullable Long logSize) voidsetOnceOff(boolean onceOff) voidsetProcessingDuration(long processingDuration) voidsetQueueTime(Date queueDate) voidsetRebuild(boolean rebuild) voidsetRestartCount(int restartCount) Sets number of build restarts.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) voidSets format version to current Bamboo build number.voidupdateLifeCycleState(@NotNull LifeCycleState lifeCycleState, @NotNull BuildState buildState) Update lifeCycleState and buildState in one go.Methods inherited from interface com.atlassian.bamboo.core.BambooCustomDataAware
updateCustomDataEntryMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setIdMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.atlassian.bamboo.deletion.Deletable
setMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.plan.cache.ImmutableDeletable
isMarkedForDeletionMethods inherited from interface com.atlassian.bamboo.resultsummary.ImmutableResultsSummary
getArtifactLinks, getArtifactLinksThatExist, getBuildAgentId, getBuildAgentType, getBuildCancelledDate, getBuildCompletedDate, getBuildTime, getChangesListSummary, getCommits, getCustomBuildData, getDeltaState, getDuration, getDurationDescription, getFixingJiraIssues, getFullPlanName, getImmutableChain, getJiraIssueKeys, getJiraIssues, getLabellings, getLabelNames, getLifeCycleState, getLogSize, getManuallyOverriddenVariables, getPlanIfExists, getPlanKey, getPlanName, getPlanResultKey, getProcessingDuration, getProcessingDurationDescription, getQueueTime, getReasonSummary, getRelatedJiraIssues, getRelativeBuildDate, getRelativeBuildDate, getRelativeBuildStartedDate, getRelativeBuildStartedDate, getRelativeQueueDate, getRelativeQueueDate, getRepositoryChangesets, getRestartCount, getShortReasonSummary, getSubscriptions, getSubstitutedVariables, getTestResultsSummary, getTestSummary, getTimeToFix, getTriggerReason, getUniqueAuthors, getVariableContextLogs, hasChanges, isActive, isCustomBuild, isFailed, isFinalized, isFinished, isInProgress, isNotBuilt, isNotRunYet, isOnceOff, isPending, isQueued, isRebuild, isSuccessful, isWaitingMethods inherited from interface com.atlassian.bamboo.plan.PlanResultKeyProvider
getPlanResultKeyMethods inherited from interface com.atlassian.bamboo.resultsummary.ResultStatisticsProvider
getBuildDate, getBuildNumber, getBuildState, getStatDate
-
Method Details
-
getImmutablePlan
Gets 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- Returns:
- the owning plan for the result
- Throws:
IllegalStateException- if the plan doesn't exist.
-
getBuildKey
Deprecated.since 4.3, useImmutableResultsSummary.getPlanKey()- Returns:
- full key of the plan. e.g BAM-MAIN
-
getBuildResultKey
Deprecated.since 4.3, useImmutableResultsSummary.getPlanResultKey()- Returns:
- full build result key e.g. BAM-MAIN-100
-
setTriggerReason
-
setDeltaState
Sets theDeltaStatefor the summary. Provides a status relative to the previous summary.- Parameters:
deltaState- - the relative status for this summary
-
setOnceOff
void setOnceOff(boolean onceOff) -
setCustomBuild
void setCustomBuild(boolean customBuild) -
setRebuild
void setRebuild(boolean rebuild) -
setLogSize
Sets the size of the log file associated with this result, eg. size of the log produced by aJobor largest log produced byChain'sJobs.- Parameters:
logSize- size of the largest log associated with the result (use null if unknown)
-
setDuration
void setDuration(long duration) - Parameters:
duration- duration of the build in milliseconds
-
setProcessingDuration
void setProcessingDuration(long processingDuration) - Parameters:
processingDuration-
-
setBuildCompletedDate
-
setBuildCancelledDate
-
setTimeToFix
A stored version of how long (milli seconds) it took for this build to fix a failure.- Parameters:
timeToFix- how long (milli seconds) it took for this build to fix a failure.
-
resetTestClassResults
Overrides all current testClassResults with the new ones- Parameters:
testClassResults- to set
-
setTestResultsSummary
Set the test summary information from this build- Parameters:
testResultsSummary- the test summary information
-
setBuildDate
- Parameters:
buildDate-
-
setQueueTime
- Parameters:
queueDate-
-
updateLifeCycleState
void updateLifeCycleState(@NotNull @NotNull LifeCycleState lifeCycleState, @NotNull @NotNull BuildState buildState) Update lifeCycleState and buildState in one go. Can throw IllegalArgumentException when values passed make no sense: - lifeCycleState == LifeCycleState.NOT_BUILT && buildState != BuildState.UNKNOWN- Parameters:
lifeCycleState- lifeCycleState to be setbuildState- buildState to be set
-
incrementRestartCount
int incrementRestartCount()Increments number of build restarts and returns the new value -
setRestartCount
@Internal void setRestartCount(int restartCount) Sets number of build restarts. -
setBuildAgentId
void setBuildAgentId(long buildAgentId) -
setBuildAgentType
Sets the build agent type.- Since:
- 9.3
-
getVariableContextBaselineId
-
getFormatVersion
int getFormatVersion()- Returns:
- build number of Bamboo version in which this result was created
-
updateFormatVersion
void updateFormatVersion()Sets format version to current Bamboo build number. -
getVariableContextLogsEncrypted
since 7.0 for internal use only, useResultsSummaryVariableAccessorinstead -
getSubstitutedVariablesEncrypted
@Internal @Deprecated @NotNull @NotNull List<VariableSubstitution> getSubstitutedVariablesEncrypted()Deprecated.returns empty list for any result created with version 5.7 or latersince 7.0 for internal use only, useResultsSummaryVariableAccessorinstead -
addVariableContextItem
-
ImmutableResultsSummary.getPlanKey()