|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.v2.build.CurrentBuildResultImpl
public class CurrentBuildResultImpl
Field Summary |
---|
Fields inherited from interface com.atlassian.bamboo.v2.build.CurrentBuildResult |
---|
CBD_BUILD_TIME_STAMP |
Constructor Summary | |
---|---|
CurrentBuildResultImpl()
|
Method Summary | |
---|---|
void |
addBuildErrors(java.util.List<java.lang.String> errorMessages)
|
void |
appendTestResults(java.util.Set<TestResults> successfulTestResults,
java.util.Set<TestResults> failedTestResults,
java.util.Set<TestResults> skippedTestResults)
Append test results to the existing stored test results for this build. |
void |
clearBuildErrors()
|
BuildResults |
cloneAsBuildResults(BuildContext buildContext,
ReasonForBuild reasonForBuild)
|
java.util.List<java.lang.String> |
getBuildErrors()
|
int |
getBuildReturnCode()
|
BuildState |
getBuildState()
|
java.util.Map<java.lang.String,java.lang.String> |
getCustomBuildData()
Returns a map of string keyed strings for storing arbitrary data |
java.util.Collection<TestResults> |
getFailedTestResults()
Returns TestResults for the tests that have failed during current build. |
LifeCycleState |
getLifeCycleState()
|
PlanManager |
getPlanManager()
|
java.util.Collection<TestResults> |
getSkippedTestResults()
Returns TestResults for the tests that were skipped (or inconclusive) during current build. |
java.util.Collection<TestResults> |
getSuccessfulTestResults()
Returns TestResults for the tests that were successful during current build. |
java.util.List<TaskResult> |
getTaskResults()
|
java.util.List<TaskResult> |
getTaskResultsForTask(java.lang.String pluginKey)
|
boolean |
isCheckoutSuccess()
|
boolean |
isStarted()
|
void |
setBuildErrors(java.util.List<java.lang.String> buildErrors)
|
void |
setBuildReturnCode(int buildReturnCode)
|
void |
setBuildState(BuildState buildState)
|
void |
setCheckoutSuccess(boolean checkoutSuccess)
|
void |
setLifeCycleState(LifeCycleState lifeCycleState)
|
void |
setPlanManager(PlanManager planManager)
|
void |
setStarted(boolean started)
|
void |
setTaskResults(java.util.List<TaskResult> taskResults)
|
void |
setTestResults(java.util.Set<TestResults> successfulTestResults,
java.util.Set<TestResults> failedTestResults)
Set the test results for this build. |
void |
setTestResults(java.util.Set<TestResults> successfulTestResults,
java.util.Set<TestResults> failedTestResults,
java.util.Set<TestResults> skippedTestResults)
Set the test results for this build. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CurrentBuildResultImpl()
Method Detail |
---|
@NotNull public BuildState getBuildState()
getBuildState
in interface CurrentBuildResult
public void setBuildState(@NotNull BuildState buildState)
setBuildState
in interface CurrentBuildResult
@NotNull public LifeCycleState getLifeCycleState()
getLifeCycleState
in interface CurrentBuildResult
public void setLifeCycleState(@NotNull LifeCycleState lifeCycleState)
setLifeCycleState
in interface CurrentBuildResult
@NotNull public java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
CurrentBuildResult
getCustomBuildData
in interface CurrentBuildResult
public boolean isStarted()
isStarted
in interface CurrentBuildResult
public void setStarted(boolean started)
setStarted
in interface CurrentBuildResult
public void addBuildErrors(@Nullable java.util.List<java.lang.String> errorMessages)
addBuildErrors
in interface CurrentBuildResult
@NotNull public java.util.List<java.lang.String> getBuildErrors()
getBuildErrors
in interface CurrentBuildResult
public void setBuildErrors(@NotNull java.util.List<java.lang.String> buildErrors)
public void clearBuildErrors()
clearBuildErrors
in interface CurrentBuildResult
@Nullable public java.util.Collection<TestResults> getFailedTestResults()
CurrentBuildResult
getFailedTestResults
in interface CurrentBuildResult
@Nullable public java.util.Collection<TestResults> getSuccessfulTestResults()
CurrentBuildResult
getSuccessfulTestResults
in interface CurrentBuildResult
@Nullable public java.util.Collection<TestResults> getSkippedTestResults()
CurrentBuildResult
getSkippedTestResults
in interface CurrentBuildResult
public void setTestResults(java.util.Set<TestResults> successfulTestResults, java.util.Set<TestResults> failedTestResults, java.util.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 java.util.Set<TestResults> successfulTestResults, @Nullable java.util.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 java.util.Set<TestResults> successfulTestResults, @Nullable java.util.Set<TestResults> failedTestResults, @Nullable java.util.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 java.util.List<TaskResult> getTaskResults()
getTaskResults
in interface CurrentBuildResult
public void setTaskResults(java.util.List<TaskResult> taskResults)
setTaskResults
in interface CurrentBuildResult
public java.util.List<TaskResult> getTaskResultsForTask(@NotNull java.lang.String pluginKey)
getTaskResultsForTask
in interface CurrentBuildResult
public PlanManager getPlanManager()
public void setPlanManager(PlanManager planManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |