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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBuildErrors(@Nullable List<String> errorMessages) voidappendTestResults(@Nullable Set<TestResults> successfulTestResults, @Nullable Set<TestResults> failedTestResults, @Nullable Set<TestResults> skippedTestResults) Append test results to the existing stored test results for this build.voidcloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild) int@NotNull BuildStateReturns a map of string keyed strings for storing arbitrary data@Nullable Collection<TestResults>@NotNull LifeCycleStateintReturns number of parsing errors.@Nullable Collection<TestResults>@Nullable Collection<TestResults>@NotNull List<TaskResult>getTaskResultsForTask(@NotNull String pluginKey) @NotNull DateVersion control system working copy state after build completion.voidincParserErrorsCount(int count) Notify about parsing errors.booleanbooleanvoidsetBuildErrors(@NotNull List<String> buildErrors) Deprecated.since 5.10 without replacementvoidsetBuildReturnCode(int buildReturnCode) voidsetBuildState(@NotNull BuildState buildState) voidsetCheckoutSuccess(boolean checkoutSuccess) voidsetLifeCycleState(@NotNull LifeCycleState lifeCycleState) voidsetStarted(boolean started) voidsetTaskResults(List<TaskResult> taskResults) voidsetTasksStartDate(@NotNull Date taskStartDate) voidsetTestResults(@Nullable Set<TestResults> successfulTestResults, @Nullable Set<TestResults> failedTestResults) Set the test results for this build.voidsetTestResults(@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:
getBuildStatein interfaceCurrentResult
-
setBuildState
- Specified by:
setBuildStatein interfaceCurrentResult
-
getLifeCycleState
- Specified by:
getLifeCycleStatein interfaceCurrentResult
-
setLifeCycleState
- Specified by:
setLifeCycleStatein interfaceCurrentResult
-
getCustomBuildData
Description copied from interface:CurrentResultReturns a map of string keyed strings for storing arbitrary data- Specified by:
getCustomBuildDatain interfaceCurrentResult
-
isStarted
public boolean isStarted()- Specified by:
isStartedin interfaceCurrentResult
-
setStarted
public void setStarted(boolean started) - Specified by:
setStartedin interfaceCurrentResult
-
addBuildErrors
- Specified by:
addBuildErrorsin interfaceCurrentResult
-
getBuildErrors
- Specified by:
getBuildErrorsin interfaceCurrentResult
-
setBuildErrors
Deprecated.since 5.10 without replacement -
clearBuildErrors
public void clearBuildErrors()- Specified by:
clearBuildErrorsin interfaceCurrentResult
-
getFailedTestResults
- Specified by:
getFailedTestResultsin interfaceCurrentBuildResult- Returns:
- TestResults for the tests that have failed during current build.
-
getSuccessfulTestResults
- Specified by:
getSuccessfulTestResultsin interfaceCurrentBuildResult- Returns:
- TestResults for the tests that were successful during current build.
-
getSkippedTestResults
- Specified by:
getSkippedTestResultsin 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:CurrentBuildResultSet 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:
setTestResultsin 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:CurrentBuildResultSet 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:
setTestResultsin 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:CurrentBuildResultAppend 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:
appendTestResultsin interfaceCurrentBuildResult- Parameters:
successfulTestResults- - any new successful testsfailedTestResults- - any new failed testsskippedTestResults- - any new skipped tests
-
cloneAsBuildResults
- Specified by:
cloneAsBuildResultsin interfaceCurrentBuildResult
-
getBuildReturnCode
public int getBuildReturnCode()- Specified by:
getBuildReturnCodein interfaceCurrentBuildResult
-
setBuildReturnCode
public void setBuildReturnCode(int buildReturnCode) - Specified by:
setBuildReturnCodein interfaceCurrentBuildResult
-
isCheckoutSuccess
public boolean isCheckoutSuccess()- Specified by:
isCheckoutSuccessin interfaceCurrentBuildResult
-
setCheckoutSuccess
public void setCheckoutSuccess(boolean checkoutSuccess) - Specified by:
setCheckoutSuccessin interfaceCurrentBuildResult
-
incParserErrorsCount
public void incParserErrorsCount(int count) Description copied from interface:CurrentBuildResultNotify about parsing errors.- Specified by:
incParserErrorsCountin interfaceCurrentBuildResult
-
getParserErrorsCount
public int getParserErrorsCount()Description copied from interface:CurrentBuildResultReturns number of parsing errors.- Specified by:
getParserErrorsCountin interfaceCurrentBuildResult
-
getTaskResults
- Specified by:
getTaskResultsin interfaceCurrentResult
-
setTaskResults
- Specified by:
setTaskResultsin interfaceCurrentResult
-
getTaskResultsForTask
- Specified by:
getTaskResultsForTaskin interfaceCurrentResult
-
getTasksStartDate
- Specified by:
getTasksStartDatein interfaceCurrentBuildResult- Specified by:
getTasksStartDatein interfaceCurrentResult
-
setTasksStartDate
- Specified by:
setTasksStartDatein interfaceCurrentBuildResult- Specified by:
setTasksStartDatein interfaceCurrentResult
-
getBuildWarningSummaries
- Specified by:
getBuildWarningSummariesin interfaceCurrentBuildResult- Returns:
- build warnings.
-
getVcsWorkingCopyState
Description copied from interface:CurrentResultVersion control system working copy state after build completion. Tasks can add repository revisions which were changed during build.- Specified by:
getVcsWorkingCopyStatein interfaceCurrentResult
-