com.atlassian.bamboo.v2.build
Class CurrentBuildResultImpl

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.CurrentBuildResultImpl
All Implemented Interfaces:
CurrentBuildResult, java.io.Serializable

public class CurrentBuildResultImpl
extends java.lang.Object
implements CurrentBuildResult, java.io.Serializable

See Also:
Serialized Form

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

CurrentBuildResultImpl

public CurrentBuildResultImpl()
Method Detail

getBuildState

@NotNull
public BuildState getBuildState()
Specified by:
getBuildState in interface CurrentBuildResult

setBuildState

public void setBuildState(@NotNull
                          BuildState buildState)
Specified by:
setBuildState in interface CurrentBuildResult

getLifeCycleState

@NotNull
public LifeCycleState getLifeCycleState()
Specified by:
getLifeCycleState in interface CurrentBuildResult

setLifeCycleState

public void setLifeCycleState(@NotNull
                              LifeCycleState lifeCycleState)
Specified by:
setLifeCycleState in interface CurrentBuildResult

getCustomBuildData

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
Description copied from interface: CurrentBuildResult
Returns a map of string keyed strings for storing arbitrary data

Specified by:
getCustomBuildData in interface CurrentBuildResult
Returns:

isStarted

public boolean isStarted()
Specified by:
isStarted in interface CurrentBuildResult

setStarted

public void setStarted(boolean started)
Specified by:
setStarted in interface CurrentBuildResult

addBuildErrors

public void addBuildErrors(@Nullable
                           java.util.List<java.lang.String> errorMessages)
Specified by:
addBuildErrors in interface CurrentBuildResult

getBuildErrors

@NotNull
public java.util.List<java.lang.String> getBuildErrors()
Specified by:
getBuildErrors in interface CurrentBuildResult

setBuildErrors

public void setBuildErrors(@NotNull
                           java.util.List<java.lang.String> buildErrors)

clearBuildErrors

public void clearBuildErrors()
Specified by:
clearBuildErrors in interface CurrentBuildResult

getFailedTestResults

@Nullable
public java.util.Collection<TestResults> getFailedTestResults()
Description copied from interface: CurrentBuildResult
Returns TestResults for the tests that have failed during current build.

Specified by:
getFailedTestResults in interface CurrentBuildResult
Returns:

getSuccessfulTestResults

@Nullable
public java.util.Collection<TestResults> getSuccessfulTestResults()
Description copied from interface: CurrentBuildResult
Returns TestResults for the tests that were successful during current build.

Specified by:
getSuccessfulTestResults in interface CurrentBuildResult
Returns:

getSkippedTestResults

@Nullable
public java.util.Collection<TestResults> getSkippedTestResults()
Description copied from interface: CurrentBuildResult
Returns TestResults for the tests that were skipped (or inconclusive) during current build.

Specified by:
getSkippedTestResults in interface CurrentBuildResult
Returns:

setTestResults

public void setTestResults(java.util.Set<TestResults> successfulTestResults,
                           java.util.Set<TestResults> failedTestResults,
                           java.util.Set<TestResults> skippedTestResults)
Description copied from interface: CurrentBuildResult
Set the test results for this build. You most likely dont want to use this as other tasks or plugins may have already added tests. Use CurrentBuildResult.appendTestResults(Set, Set, Set) instead.

Specified by:
setTestResults in interface CurrentBuildResult
Parameters:
successfulTestResults - a set of successful results retrieved from the build
failedTestResults - a set of failed results retrieved from the build
skippedTestResults - s set of skipped results retrieved from the build

setTestResults

public void setTestResults(@Nullable
                           java.util.Set<TestResults> successfulTestResults,
                           @Nullable
                           java.util.Set<TestResults> failedTestResults)
Description copied from interface: CurrentBuildResult
Set the test results for this build. You most likely dont want to use this as other tasks or plugins may have already added tests. Use CurrentBuildResult.appendTestResults(Set, Set, Set) instead.

Specified by:
setTestResults in interface CurrentBuildResult
Parameters:
successfulTestResults - a set of successful results retrieved from the build
failedTestResults - a set of failed results retrieved from the build

appendTestResults

public void appendTestResults(@Nullable
                              java.util.Set<TestResults> successfulTestResults,
                              @Nullable
                              java.util.Set<TestResults> failedTestResults,
                              @Nullable
                              java.util.Set<TestResults> skippedTestResults)
Description copied from interface: CurrentBuildResult
Append 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:
appendTestResults in interface CurrentBuildResult
Parameters:
successfulTestResults - - any new successful tests
failedTestResults - - any new failed tests
skippedTestResults - - any new skipped tests

cloneAsBuildResults

public BuildResults cloneAsBuildResults(BuildContext buildContext,
                                        ReasonForBuild reasonForBuild)
Specified by:
cloneAsBuildResults in interface CurrentBuildResult

getBuildReturnCode

public int getBuildReturnCode()
Specified by:
getBuildReturnCode in interface CurrentBuildResult

setBuildReturnCode

public void setBuildReturnCode(int buildReturnCode)
Specified by:
setBuildReturnCode in interface CurrentBuildResult

isCheckoutSuccess

public boolean isCheckoutSuccess()
Specified by:
isCheckoutSuccess in interface CurrentBuildResult

setCheckoutSuccess

public void setCheckoutSuccess(boolean checkoutSuccess)
Specified by:
setCheckoutSuccess in interface CurrentBuildResult

getTaskResults

public java.util.List<TaskResult> getTaskResults()
Specified by:
getTaskResults in interface CurrentBuildResult

setTaskResults

public void setTaskResults(java.util.List<TaskResult> taskResults)
Specified by:
setTaskResults in interface CurrentBuildResult

getTaskResultsForTask

public java.util.List<TaskResult> getTaskResultsForTask(@NotNull
                                                        java.lang.String pluginKey)
Specified by:
getTaskResultsForTask in interface CurrentBuildResult

getPlanManager

public PlanManager getPlanManager()

setPlanManager

public void setPlanManager(PlanManager planManager)


Copyright © 2012 Atlassian. All Rights Reserved.