public class CurrentBuildResultImpl extends Object implements CurrentBuildResult, Serializable
CBD_BUILD_TIME_STAMP| Constructor and Description |
|---|
CurrentBuildResultImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
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 |
clearBuildErrors() |
BuildResults |
cloneAsBuildResults(BuildContext buildContext,
ReasonForBuild reasonForBuild) |
@NotNull List<String> |
getBuildErrors() |
int |
getBuildReturnCode() |
@NotNull BuildState |
getBuildState() |
FinalHashSet<BuildWarningSummary> |
getBuildWarningSummaries() |
@NotNull Map<String,String> |
getCustomBuildData()
Returns a map of string keyed strings for storing arbitrary data
|
@Nullable Collection<TestResults> |
getFailedTestResults() |
@NotNull LifeCycleState |
getLifeCycleState() |
int |
getParserErrorsCount()
Returns number of parsing errors.
|
@Nullable Collection<TestResults> |
getSkippedTestResults() |
@Nullable Collection<TestResults> |
getSuccessfulTestResults() |
@NotNull List<TaskResult> |
getTaskResults() |
List<TaskResult> |
getTaskResultsForTask(@NotNull String pluginKey) |
@NotNull Date |
getTasksStartDate() |
VcsWorkingCopyState |
getVcsWorkingCopyState()
Version control system working copy state after build completion.
|
void |
incParserErrorsCount(int count)
Notify about parsing errors.
|
boolean |
isCheckoutSuccess() |
boolean |
isStarted() |
void |
setBuildErrors(@NotNull List<String> buildErrors)
Deprecated.
since 5.10 without replacement
|
void |
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.
|
@NotNull public @NotNull BuildState getBuildState()
getBuildState in interface CurrentResultpublic void setBuildState(@NotNull
@NotNull BuildState buildState)
setBuildState in interface CurrentResult@NotNull public @NotNull LifeCycleState getLifeCycleState()
getLifeCycleState in interface CurrentResultpublic void setLifeCycleState(@NotNull
@NotNull LifeCycleState lifeCycleState)
setLifeCycleState in interface CurrentResult@NotNull public @NotNull Map<String,String> getCustomBuildData()
CurrentResultgetCustomBuildData in interface CurrentResultpublic boolean isStarted()
isStarted in interface CurrentResultpublic void setStarted(boolean started)
setStarted in interface CurrentResultpublic void addBuildErrors(@Nullable
@Nullable List<String> errorMessages)
addBuildErrors in interface CurrentResult@NotNull public @NotNull List<String> getBuildErrors()
getBuildErrors in interface CurrentResult@Deprecated public void setBuildErrors(@NotNull @NotNull List<String> buildErrors)
public void clearBuildErrors()
clearBuildErrors in interface CurrentResult@Nullable public @Nullable Collection<TestResults> getFailedTestResults()
getFailedTestResults in interface CurrentBuildResult@Nullable public @Nullable Collection<TestResults> getSuccessfulTestResults()
getSuccessfulTestResults in interface CurrentBuildResult@Nullable public @Nullable Collection<TestResults> getSkippedTestResults()
getSkippedTestResults in interface CurrentBuildResultpublic void setTestResults(@Nullable
@Nullable Set<TestResults> successfulTestResults,
@Nullable
@Nullable Set<TestResults> failedTestResults,
@Nullable
@Nullable Set<TestResults> skippedTestResults)
CurrentBuildResultCurrentBuildResult.appendTestResults(Set, Set, Set) instead.setTestResults in interface CurrentBuildResultsuccessfulTestResults - 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 buildpublic void setTestResults(@Nullable
@Nullable Set<TestResults> successfulTestResults,
@Nullable
@Nullable Set<TestResults> failedTestResults)
CurrentBuildResultCurrentBuildResult.appendTestResults(Set, Set, Set) instead.setTestResults in interface CurrentBuildResultsuccessfulTestResults - a set of successful results retrieved from the buildfailedTestResults - a set of failed results retrieved from the buildpublic void appendTestResults(@Nullable
@Nullable Set<TestResults> successfulTestResults,
@Nullable
@Nullable Set<TestResults> failedTestResults,
@Nullable
@Nullable Set<TestResults> skippedTestResults)
CurrentBuildResultappendTestResults in interface CurrentBuildResultsuccessfulTestResults - - any new successful testsfailedTestResults - - any new failed testsskippedTestResults - - any new skipped testspublic BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
cloneAsBuildResults in interface CurrentBuildResultpublic int getBuildReturnCode()
getBuildReturnCode in interface CurrentBuildResultpublic void setBuildReturnCode(int buildReturnCode)
setBuildReturnCode in interface CurrentBuildResultpublic boolean isCheckoutSuccess()
isCheckoutSuccess in interface CurrentBuildResultpublic void setCheckoutSuccess(boolean checkoutSuccess)
setCheckoutSuccess in interface CurrentBuildResultpublic void incParserErrorsCount(int count)
CurrentBuildResultincParserErrorsCount in interface CurrentBuildResultpublic int getParserErrorsCount()
CurrentBuildResultgetParserErrorsCount in interface CurrentBuildResult@NotNull public @NotNull List<TaskResult> getTaskResults()
getTaskResults in interface CurrentResultpublic void setTaskResults(List<TaskResult> taskResults)
setTaskResults in interface CurrentResultpublic List<TaskResult> getTaskResultsForTask(@NotNull @NotNull String pluginKey)
getTaskResultsForTask in interface CurrentResult@NotNull public @NotNull Date getTasksStartDate()
getTasksStartDate in interface CurrentBuildResultgetTasksStartDate in interface CurrentResultpublic void setTasksStartDate(@NotNull
@NotNull Date taskStartDate)
setTasksStartDate in interface CurrentBuildResultsetTasksStartDate in interface CurrentResultpublic FinalHashSet<BuildWarningSummary> getBuildWarningSummaries()
getBuildWarningSummaries in interface CurrentBuildResultpublic VcsWorkingCopyState getVcsWorkingCopyState()
CurrentResultgetVcsWorkingCopyState in interface CurrentResultCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.