Package com.atlassian.bamboo.v2.build
Interface CurrentBuildResult
- All Superinterfaces:
CurrentResult
,Serializable
- All Known Implementing Classes:
CurrentBuildResultImpl
Interface that defines the partial output of a plan being built
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.cloneAsBuildResults
(BuildContext buildContext, ReasonForBuild reasonForBuild) int
@Nullable Collection<TestResults>
int
Returns number of parsing errors.@Nullable Collection<TestResults>
@Nullable Collection<TestResults>
@NotNull Date
void
incParserErrorsCount
(int count) Notify about parsing errors.boolean
void
setBuildReturnCode
(int buildReturnCode) void
setCheckoutSuccess
(boolean checkoutSuccess) void
setTasksStartDate
(@NotNull Date startDate) 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.Methods inherited from interface com.atlassian.bamboo.v2.build.CurrentResult
addBuildErrors, clearBuildErrors, getBuildErrors, getBuildState, getCustomBuildData, getLifeCycleState, getTaskResults, getTaskResultsForTask, getVcsWorkingCopyState, isStarted, setBuildState, setLifeCycleState, setStarted, setTaskResults
-
Field Details
-
CBD_BUILD_TIME_STAMP
Key name in custom build data- See Also:
-
-
Method Details
-
getBuildReturnCode
int getBuildReturnCode() -
setBuildReturnCode
void setBuildReturnCode(int buildReturnCode) -
getTasksStartDate
- Specified by:
getTasksStartDate
in interfaceCurrentResult
-
setTasksStartDate
- Specified by:
setTasksStartDate
in interfaceCurrentResult
-
getFailedTestResults
- Returns:
- TestResults for the tests that have failed during current build.
-
getSuccessfulTestResults
- Returns:
- TestResults for the tests that were successful during current build.
-
getSkippedTestResults
- Returns:
- TestResults for the tests that were skipped (or inconclusive) during current build.
-
setTestResults
void setTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults, @Nullable @Nullable Set<TestResults> skippedTestResults) 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. UseappendTestResults(Set, Set, Set)
instead.- 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
void setTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults) 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. UseappendTestResults(Set, Set, Set)
instead.- Parameters:
successfulTestResults
- a set of successful results retrieved from the buildfailedTestResults
- a set of failed results retrieved from the build
-
appendTestResults
void appendTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults, @Nullable @Nullable Set<TestResults> skippedTestResults) 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.- Parameters:
successfulTestResults
- - any new successful testsfailedTestResults
- - any new failed testsskippedTestResults
- - any new skipped tests
-
cloneAsBuildResults
-
isCheckoutSuccess
boolean isCheckoutSuccess() -
setCheckoutSuccess
void setCheckoutSuccess(boolean checkoutSuccess) -
incParserErrorsCount
void incParserErrorsCount(int count) Notify about parsing errors.- Since:
- 6.0
-
getParserErrorsCount
int getParserErrorsCount()Returns number of parsing errors.- Since:
- 6.0
-
getBuildWarningSummaries
Collection<BuildWarningSummary> getBuildWarningSummaries()- Returns:
- build warnings.
-