Package com.atlassian.bamboo.v2.build
Interface CurrentBuildResult
-
- All Superinterfaces:
CurrentResult
,Serializable
- All Known Implementing Classes:
CurrentBuildResultImpl
@PublicApi public interface CurrentBuildResult extends CurrentResult
Interface that defines the partial output of a plan being built
-
-
Field Summary
Fields Modifier and Type Field Description static String
CBD_BUILD_TIME_STAMP
Key name in custom build data
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.BuildResults
cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
int
getBuildReturnCode()
Collection<BuildWarningSummary>
getBuildWarningSummaries()
@Nullable Collection<TestResults>
getFailedTestResults()
int
getParserErrorsCount()
Returns number of parsing errors.@Nullable Collection<TestResults>
getSkippedTestResults()
@Nullable Collection<TestResults>
getSuccessfulTestResults()
@NotNull Date
getTasksStartDate()
void
incParserErrorsCount(int count)
Notify about parsing errors.boolean
isCheckoutSuccess()
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 Detail
-
CBD_BUILD_TIME_STAMP
static final String CBD_BUILD_TIME_STAMP
Key name in custom build data- See Also:
- Constant Field Values
-
-
Method Detail
-
getBuildReturnCode
int getBuildReturnCode()
-
setBuildReturnCode
void setBuildReturnCode(int buildReturnCode)
-
getTasksStartDate
@NotNull @NotNull Date getTasksStartDate()
- Specified by:
getTasksStartDate
in interfaceCurrentResult
-
setTasksStartDate
void setTasksStartDate(@NotNull @NotNull Date startDate)
- Specified by:
setTasksStartDate
in interfaceCurrentResult
-
getFailedTestResults
@Nullable @Nullable Collection<TestResults> getFailedTestResults()
- Returns:
- TestResults for the tests that have failed during current build.
-
getSuccessfulTestResults
@Nullable @Nullable Collection<TestResults> getSuccessfulTestResults()
- Returns:
- TestResults for the tests that were successful during current build.
-
getSkippedTestResults
@Nullable @Nullable Collection<TestResults> 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
BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
-
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.
-
-