Package com.atlassian.bamboo.v2.build
Class CurrentBuildResultImpl
java.lang.Object
com.atlassian.bamboo.v2.build.CurrentBuildResultImpl
- All Implemented Interfaces:
CurrentBuildResult
,CurrentResult
,Serializable
- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.v2.build.CurrentBuildResult
CBD_BUILD_TIME_STAMP
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBuildErrors
(@Nullable List<String> errorMessages) void
appendTestResults
(@Nullable Set<TestResults> successfulTestResults, @Nullable Set<TestResults> failedTestResults, @Nullable Set<TestResults> skippedTestResults) Append test results to the existing stored test results for this build.void
cloneAsBuildResults
(BuildContext buildContext, ReasonForBuild reasonForBuild) int
@NotNull BuildState
Returns a map of string keyed strings for storing arbitrary data@Nullable Collection<TestResults>
@NotNull LifeCycleState
int
Returns number of parsing errors.@Nullable Collection<TestResults>
@Nullable Collection<TestResults>
@NotNull List<TaskResult>
getTaskResultsForTask
(@NotNull String pluginKey) @NotNull Date
Version control system working copy state after build completion.void
incParserErrorsCount
(int count) Notify about parsing errors.boolean
boolean
void
setBuildErrors
(@NotNull List<String> buildErrors) Deprecated.since 5.10 without replacementvoid
setBuildReturnCode
(int buildReturnCode) void
setBuildState
(@NotNull BuildState buildState) void
setCheckoutSuccess
(boolean checkoutSuccess) void
setLifeCycleState
(@NotNull LifeCycleState lifeCycleState) void
setStarted
(boolean started) void
setTaskResults
(List<TaskResult> taskResults) void
setTasksStartDate
(@NotNull Date taskStartDate) void
setTestResults
(@Nullable Set<TestResults> successfulTestResults, @Nullable Set<TestResults> failedTestResults) Set the test results for this build.void
setTestResults
(@Nullable Set<TestResults> successfulTestResults, @Nullable Set<TestResults> failedTestResults, @Nullable Set<TestResults> skippedTestResults) Set the test results for this build.
-
Constructor Details
-
CurrentBuildResultImpl
public CurrentBuildResultImpl()
-
-
Method Details
-
getBuildState
- Specified by:
getBuildState
in interfaceCurrentResult
-
setBuildState
- Specified by:
setBuildState
in interfaceCurrentResult
-
getLifeCycleState
- Specified by:
getLifeCycleState
in interfaceCurrentResult
-
setLifeCycleState
- Specified by:
setLifeCycleState
in interfaceCurrentResult
-
getCustomBuildData
Description copied from interface:CurrentResult
Returns a map of string keyed strings for storing arbitrary data- Specified by:
getCustomBuildData
in interfaceCurrentResult
-
isStarted
public boolean isStarted()- Specified by:
isStarted
in interfaceCurrentResult
-
setStarted
public void setStarted(boolean started) - Specified by:
setStarted
in interfaceCurrentResult
-
addBuildErrors
- Specified by:
addBuildErrors
in interfaceCurrentResult
-
getBuildErrors
- Specified by:
getBuildErrors
in interfaceCurrentResult
-
setBuildErrors
Deprecated.since 5.10 without replacement -
clearBuildErrors
public void clearBuildErrors()- Specified by:
clearBuildErrors
in interfaceCurrentResult
-
getFailedTestResults
- Specified by:
getFailedTestResults
in interfaceCurrentBuildResult
- Returns:
- TestResults for the tests that have failed during current build.
-
getSuccessfulTestResults
- Specified by:
getSuccessfulTestResults
in interfaceCurrentBuildResult
- Returns:
- TestResults for the tests that were successful during current build.
-
getSkippedTestResults
- Specified by:
getSkippedTestResults
in interfaceCurrentBuildResult
- Returns:
- TestResults for the tests that were skipped (or inconclusive) during current build.
-
setTestResults
public void setTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults, @Nullable @Nullable Set<TestResults> skippedTestResults) Description copied from interface:CurrentBuildResult
Set the test results for this build. You most likely dont want to use this as other tasks or plugins may have already added tests. UseCurrentBuildResult.appendTestResults(Set, Set, Set)
instead.- Specified by:
setTestResults
in interfaceCurrentBuildResult
- Parameters:
successfulTestResults
- a set of successful results retrieved from the buildfailedTestResults
- a set of failed results retrieved from the buildskippedTestResults
- s set of skipped results retrieved from the build
-
setTestResults
public void setTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults) Description copied from interface:CurrentBuildResult
Set the test results for this build. You most likely dont want to use this as other tasks or plugins may have already added tests. UseCurrentBuildResult.appendTestResults(Set, Set, Set)
instead.- Specified by:
setTestResults
in interfaceCurrentBuildResult
- Parameters:
successfulTestResults
- a set of successful results retrieved from the buildfailedTestResults
- a set of failed results retrieved from the build
-
appendTestResults
public void appendTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults, @Nullable @Nullable Set<TestResults> skippedTestResults) Description copied from interface:CurrentBuildResult
Append test results to the existing stored test results for this build. Leave arguments null or empty if you have nothing in that category append.- Specified by:
appendTestResults
in interfaceCurrentBuildResult
- Parameters:
successfulTestResults
- - any new successful testsfailedTestResults
- - any new failed testsskippedTestResults
- - any new skipped tests
-
cloneAsBuildResults
- Specified by:
cloneAsBuildResults
in interfaceCurrentBuildResult
-
getBuildReturnCode
public int getBuildReturnCode()- Specified by:
getBuildReturnCode
in interfaceCurrentBuildResult
-
setBuildReturnCode
public void setBuildReturnCode(int buildReturnCode) - Specified by:
setBuildReturnCode
in interfaceCurrentBuildResult
-
isCheckoutSuccess
public boolean isCheckoutSuccess()- Specified by:
isCheckoutSuccess
in interfaceCurrentBuildResult
-
setCheckoutSuccess
public void setCheckoutSuccess(boolean checkoutSuccess) - Specified by:
setCheckoutSuccess
in interfaceCurrentBuildResult
-
incParserErrorsCount
public void incParserErrorsCount(int count) Description copied from interface:CurrentBuildResult
Notify about parsing errors.- Specified by:
incParserErrorsCount
in interfaceCurrentBuildResult
-
getParserErrorsCount
public int getParserErrorsCount()Description copied from interface:CurrentBuildResult
Returns number of parsing errors.- Specified by:
getParserErrorsCount
in interfaceCurrentBuildResult
-
getTaskResults
- Specified by:
getTaskResults
in interfaceCurrentResult
-
setTaskResults
- Specified by:
setTaskResults
in interfaceCurrentResult
-
getTaskResultsForTask
- Specified by:
getTaskResultsForTask
in interfaceCurrentResult
-
getTasksStartDate
- Specified by:
getTasksStartDate
in interfaceCurrentBuildResult
- Specified by:
getTasksStartDate
in interfaceCurrentResult
-
setTasksStartDate
- Specified by:
setTasksStartDate
in interfaceCurrentBuildResult
- Specified by:
setTasksStartDate
in interfaceCurrentResult
-
getBuildWarningSummaries
- Specified by:
getBuildWarningSummaries
in interfaceCurrentBuildResult
- Returns:
- build warnings.
-
getVcsWorkingCopyState
Description copied from interface:CurrentResult
Version control system working copy state after build completion. Tasks can add repository revisions which were changed during build.- Specified by:
getVcsWorkingCopyState
in interfaceCurrentResult
-