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 CurrentResult
public void setBuildState(@NotNull @NotNull BuildState buildState)
setBuildState
in interface CurrentResult
@NotNull public @NotNull LifeCycleState getLifeCycleState()
getLifeCycleState
in interface CurrentResult
public void setLifeCycleState(@NotNull @NotNull LifeCycleState lifeCycleState)
setLifeCycleState
in interface CurrentResult
@NotNull public @NotNull Map<String,String> getCustomBuildData()
CurrentResult
getCustomBuildData
in interface CurrentResult
public boolean isStarted()
isStarted
in interface CurrentResult
public void setStarted(boolean started)
setStarted
in interface CurrentResult
public 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 CurrentBuildResult
public void setTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults, @Nullable @Nullable Set<TestResults> skippedTestResults)
CurrentBuildResult
CurrentBuildResult.appendTestResults(Set, Set, Set)
instead.setTestResults
in interface CurrentBuildResult
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 buildpublic void setTestResults(@Nullable @Nullable Set<TestResults> successfulTestResults, @Nullable @Nullable Set<TestResults> failedTestResults)
CurrentBuildResult
CurrentBuildResult.appendTestResults(Set, Set, Set)
instead.setTestResults
in interface CurrentBuildResult
successfulTestResults
- 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)
CurrentBuildResult
appendTestResults
in interface CurrentBuildResult
successfulTestResults
- - any new successful testsfailedTestResults
- - any new failed testsskippedTestResults
- - any new skipped testspublic BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
cloneAsBuildResults
in interface CurrentBuildResult
public int getBuildReturnCode()
getBuildReturnCode
in interface CurrentBuildResult
public void setBuildReturnCode(int buildReturnCode)
setBuildReturnCode
in interface CurrentBuildResult
public boolean isCheckoutSuccess()
isCheckoutSuccess
in interface CurrentBuildResult
public void setCheckoutSuccess(boolean checkoutSuccess)
setCheckoutSuccess
in interface CurrentBuildResult
public void incParserErrorsCount(int count)
CurrentBuildResult
incParserErrorsCount
in interface CurrentBuildResult
public int getParserErrorsCount()
CurrentBuildResult
getParserErrorsCount
in interface CurrentBuildResult
@NotNull public @NotNull List<TaskResult> getTaskResults()
getTaskResults
in interface CurrentResult
public void setTaskResults(List<TaskResult> taskResults)
setTaskResults
in interface CurrentResult
public List<TaskResult> getTaskResultsForTask(@NotNull @NotNull String pluginKey)
getTaskResultsForTask
in interface CurrentResult
@NotNull public @NotNull Date getTasksStartDate()
getTasksStartDate
in interface CurrentBuildResult
getTasksStartDate
in interface CurrentResult
public void setTasksStartDate(@NotNull @NotNull Date taskStartDate)
setTasksStartDate
in interface CurrentBuildResult
setTasksStartDate
in interface CurrentResult
public FinalHashSet<BuildWarningSummary> getBuildWarningSummaries()
getBuildWarningSummaries
in interface CurrentBuildResult
public VcsWorkingCopyState getVcsWorkingCopyState()
CurrentResult
getVcsWorkingCopyState
in interface CurrentResult
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.