public class CurrentBuildResultImpl extends Object implements CurrentBuildResult, Serializable
CBD_BUILD_TIME_STAMP
Constructor and Description |
---|
CurrentBuildResultImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addBuildErrors(List<String> errorMessages) |
void |
appendTestResults(Set<TestResults> successfulTestResults,
Set<TestResults> failedTestResults,
Set<TestResults> skippedTestResults)
Append test results to the existing stored test results for this build.
|
void |
clearBuildErrors() |
BuildResults |
cloneAsBuildResults(BuildContext buildContext,
ReasonForBuild reasonForBuild) |
List<String> |
getBuildErrors() |
int |
getBuildReturnCode() |
BuildState |
getBuildState() |
FinalHashSet<BuildWarningSummary> |
getBuildWarningSummaries() |
Map<String,String> |
getCustomBuildData()
Returns a map of string keyed strings for storing arbitrary data
|
Collection<TestResults> |
getFailedTestResults() |
LifeCycleState |
getLifeCycleState() |
int |
getParserErrorsCount()
Returns number of parsing errors.
|
Collection<TestResults> |
getSkippedTestResults() |
Collection<TestResults> |
getSuccessfulTestResults() |
List<TaskResult> |
getTaskResults() |
List<TaskResult> |
getTaskResultsForTask(String pluginKey) |
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(List<String> buildErrors)
Deprecated.
since 5.10 without replacement
|
void |
setBuildReturnCode(int buildReturnCode) |
void |
setBuildState(BuildState buildState) |
void |
setCheckoutSuccess(boolean checkoutSuccess) |
void |
setLifeCycleState(LifeCycleState lifeCycleState) |
void |
setStarted(boolean started) |
void |
setTaskResults(List<TaskResult> taskResults) |
void |
setTasksStartDate(Date taskStartDate) |
void |
setTestResults(Set<TestResults> successfulTestResults,
Set<TestResults> failedTestResults)
Set the test results for this build.
|
void |
setTestResults(Set<TestResults> successfulTestResults,
Set<TestResults> failedTestResults,
Set<TestResults> skippedTestResults)
Set the test results for this build.
|
@NotNull public BuildState getBuildState()
getBuildState
in interface CurrentResult
public void setBuildState(@NotNull BuildState buildState)
setBuildState
in interface CurrentResult
@NotNull public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface CurrentResult
public void setLifeCycleState(@NotNull LifeCycleState lifeCycleState)
setLifeCycleState
in interface CurrentResult
@NotNull public 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 List<String> errorMessages)
addBuildErrors
in interface CurrentResult
@NotNull public List<String> getBuildErrors()
getBuildErrors
in interface CurrentResult
@Deprecated public void setBuildErrors(@NotNull List<String> buildErrors)
public void clearBuildErrors()
clearBuildErrors
in interface CurrentResult
@Nullable public Collection<TestResults> getFailedTestResults()
getFailedTestResults
in interface CurrentBuildResult
@Nullable public Collection<TestResults> getSuccessfulTestResults()
getSuccessfulTestResults
in interface CurrentBuildResult
@Nullable public Collection<TestResults> getSkippedTestResults()
getSkippedTestResults
in interface CurrentBuildResult
public void setTestResults(@Nullable Set<TestResults> successfulTestResults, @Nullable Set<TestResults> failedTestResults, @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 Set<TestResults> successfulTestResults, @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 Set<TestResults> successfulTestResults, @Nullable Set<TestResults> failedTestResults, @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 List<TaskResult> getTaskResults()
getTaskResults
in interface CurrentResult
public void setTaskResults(List<TaskResult> taskResults)
setTaskResults
in interface CurrentResult
public List<TaskResult> getTaskResultsForTask(@NotNull String pluginKey)
getTaskResultsForTask
in interface CurrentResult
@NotNull public Date getTasksStartDate()
getTasksStartDate
in interface CurrentBuildResult
getTasksStartDate
in interface CurrentResult
public void setTasksStartDate(@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 © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.