@PublicApi public interface ResultsSummary extends BambooObject, Deletable, ImmutableResultsSummary, BambooCustomDataAware, PlanResultKeyProvider
Plan executionsCUSTOM_DATA_BUILD_KEYgetPlanKey| Modifier and Type | Method and Description |
|---|---|
void |
addVariableContextItem(@NotNull VariableContextSnapshot variableContext) |
@NotNull String |
getBuildKey()
Deprecated.
since 4.3, use
ImmutableResultsSummary.getPlanKey() |
@NotNull String |
getBuildResultKey()
Deprecated.
since 4.3, use
ImmutableResultsSummary.getPlanResultKey() |
int |
getFormatVersion() |
@NotNull ImmutablePlan |
getImmutablePlan()
Gets the
ImmutablePlan that this result belongs directly belongs to. |
@NotNull List<VariableSubstitution> |
getSubstitutedVariablesEncrypted()
Deprecated.
returns empty list for any result created with version 5.7 or later
|
@Nullable Long |
getVariableContextBaselineId() |
@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
|
void |
resetTestClassResults(@NotNull List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones
|
void |
setBuildAgentId(long buildAgentId) |
void |
setBuildCancelledDate(Date buildCancelledDate) |
void |
setBuildCompletedDate(@Nullable Date completionDate) |
void |
setBuildDate(Date buildDate) |
void |
setCustomBuild(boolean customBuild) |
void |
setDeltaState(DeltaState deltaState)
Sets the
DeltaState for the summary. |
void |
setDuration(long duration) |
void |
setLogSize(@Nullable Long logSize)
Sets the size of the log file associated with this result, eg.
|
void |
setOnceOff(boolean onceOff) |
void |
setProcessingDuration(long processingDuration) |
void |
setQueueTime(Date queueDate) |
void |
setRebuild(boolean rebuild) |
void |
setRestartCount(int restartCount)
Sets number of build restarts.
|
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 |
updateFormatVersion()
Sets format version to current Bamboo build number.
|
void |
updateLifeCycleState(@NotNull LifeCycleState lifeCycleState,
@NotNull BuildState buildState)
Update lifeCycleState and buildState in one go.
|
setMarkedForDeletionsetIdgetIdisMarkedForDeletiongetArtifactLinks, getArtifactLinksThatExist, getBuildAgentId, 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, hasComments, isActive, isCustomBuild, isFailed, isFinished, isInProgress, isNotBuilt, isNotRunYet, isOnceOff, isPending, isQueued, isRebuild, isSuccessful, isWaitinggetBuildDate, getBuildNumber, getBuildState, getStatDatecompareToupdateCustomDataEntrygetPlanResultKey@NotNull @NotNull ImmutablePlan getImmutablePlan()
ImmutablePlan 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 ImmutableResultsSummaryIllegalStateException - if the plan doesn't exist.@Deprecated @NotNull @NotNull String getBuildKey()
ImmutableResultsSummary.getPlanKey()@Deprecated @NotNull @NotNull String getBuildResultKey()
ImmutableResultsSummary.getPlanResultKey()void setTriggerReason(TriggerReason triggerReason)
void setDeltaState(DeltaState deltaState)
DeltaState for the summary. Provides a status relative to the previous summary.deltaState - - the relative status for this summaryvoid setOnceOff(boolean onceOff)
void setCustomBuild(boolean customBuild)
void setRebuild(boolean rebuild)
void setLogSize(@Nullable
@Nullable Long logSize)
Job or
largest log produced by Chain's Jobs.logSize - size of the largest log associated with the result (use null if unknown)void setDuration(long duration)
duration - duration of the build in millisecondsvoid setProcessingDuration(long processingDuration)
processingDuration - void setBuildCompletedDate(@Nullable
@Nullable Date completionDate)
void setBuildCancelledDate(Date buildCancelledDate)
void setTimeToFix(Long timeToFix)
timeToFix - how long (milli seconds) it took for this build to fix a failure.void resetTestClassResults(@NotNull
@NotNull List<TestClassResult> testClassResults)
testClassResults - to setvoid setTestResultsSummary(@NotNull
@NotNull TestResultsSummary testResultsSummary)
testResultsSummary - the test summary informationvoid setBuildDate(Date buildDate)
buildDate - void setQueueTime(Date queueDate)
queueDate - void updateLifeCycleState(@NotNull
@NotNull LifeCycleState lifeCycleState,
@NotNull
@NotNull BuildState buildState)
lifeCycleState - lifeCycleState to be setbuildState - buildState to be setint incrementRestartCount()
@Internal void setRestartCount(int restartCount)
void setBuildAgentId(long buildAgentId)
@Nullable @Nullable Long getVariableContextBaselineId()
int getFormatVersion()
void updateFormatVersion()
@Internal @NotNull @NotNull List<VariableContextSnapshot> getVariableContextLogsEncrypted()
ResultsSummaryVariableAccessor instead@Internal @Deprecated @NotNull @NotNull List<VariableSubstitution> getSubstitutedVariablesEncrypted()
ResultsSummaryVariableAccessor insteadvoid addVariableContextItem(@NotNull
@NotNull VariableContextSnapshot variableContext)
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.