@PublicApi public interface ResultsSummary extends BambooObject, Deletable, ImmutableResultsSummary, BambooCustomDataAware, PlanResultKeyProvider
Plan executionsCUSTOM_DATA_BUILD_KEYgetPlanKey| Modifier and Type | Method and Description |
|---|---|
String |
getBuildKey()
Deprecated.
since 4.3, use
ImmutableResultsSummary.getPlanKey() |
String |
getBuildResultKey()
Deprecated.
since 4.3, use
ImmutableResultsSummary.getPlanResultKey() |
int |
getFormatVersion() |
ImmutablePlan |
getImmutablePlan()
Gets the
ImmutablePlan that this result belongs directly belongs to. |
Long |
getVariableContextBaselineId() |
int |
incrementRestartCount()
Increments number of build restarts and returns the new value
|
void |
resetTestClassResults(List<TestClassResult> testClassResults)
Overrides all current testClassResults with the new ones
|
void |
setBuildAgentId(long buildAgentId) |
void |
setBuildCancelledDate(Date buildCancelledDate) |
void |
setBuildCompletedDate(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(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 |
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 |
updateFormatVersion()
Sets format version to current Bamboo build number.
|
void |
updateLifeCycleState(LifeCycleState lifeCycleState,
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, getVariableContext, getVariableContextLogs, hasChanges, hasComments, isActive, isCustomBuild, isFailed, isFinished, isInProgress, isNotBuilt, isNotRunYet, isOnceOff, isPending, isQueued, isRebuild, isSuccessful, isWaitinggetBuildDate, getBuildNumber, getBuildState, getStatDatecompareToupdateCustomDataEntrygetPlanResultKey@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 String getBuildKey()
ImmutableResultsSummary.getPlanKey()@Deprecated @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
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
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
List<TestClassResult> testClassResults)
testClassResults - to setvoid setTestResultsSummary(@NotNull
TestResultsSummary testResultsSummary)
testResultsSummary - the test summary informationvoid setBuildDate(Date buildDate)
buildDate - void setQueueTime(Date queueDate)
queueDate - void updateLifeCycleState(@NotNull
LifeCycleState lifeCycleState,
@NotNull
BuildState buildState)
lifeCycleState - lifeCycleState to be setbuildState - buildState to be setint incrementRestartCount()
void setBuildAgentId(long buildAgentId)
@Nullable Long getVariableContextBaselineId()
int getFormatVersion()
void updateFormatVersion()
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.