com.atlassian.bamboo.v2.build
Interface CurrentBuildResult

All Superinterfaces:
CurrentResult, java.io.Serializable
All Known Implementing Classes:
CurrentBuildResultImpl

public interface CurrentBuildResult
extends CurrentResult

Interface that defines the partial output of a plan being built


Field Summary
static java.lang.String CBD_BUILD_TIME_STAMP
          Key name in custom build data
 
Method Summary
 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.
 BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
           
 int getBuildReturnCode()
           
 java.util.Collection<TestResults> getFailedTestResults()
          Returns TestResults for the tests that have failed during current build.
 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.Date getTasksStartDate()
           
 boolean isCheckoutSuccess()
           
 void setBuildReturnCode(int buildReturnCode)
           
 void setCheckoutSuccess(boolean checkoutSuccess)
           
 void setTasksStartDate(java.util.Date startDate)
           
 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 interface com.atlassian.bamboo.v2.build.CurrentResult
addBuildErrors, clearBuildErrors, getBuildErrors, getBuildState, getCustomBuildData, getLifeCycleState, getTaskResults, getTaskResultsForTask, isStarted, setBuildState, setLifeCycleState, setStarted, setTaskResults
 

Field Detail

CBD_BUILD_TIME_STAMP

static final java.lang.String CBD_BUILD_TIME_STAMP
Key name in custom build data

See Also:
Constant Field Values
Method Detail

getBuildReturnCode

int getBuildReturnCode()

setBuildReturnCode

void setBuildReturnCode(int buildReturnCode)

getTasksStartDate

@NotNull
java.util.Date getTasksStartDate()
Specified by:
getTasksStartDate in interface CurrentResult

setTasksStartDate

void setTasksStartDate(@NotNull
                       java.util.Date startDate)
Specified by:
setTasksStartDate in interface CurrentResult

getFailedTestResults

@Nullable
java.util.Collection<TestResults> getFailedTestResults()
Returns TestResults for the tests that have failed during current build.

Returns:

getSuccessfulTestResults

@Nullable
java.util.Collection<TestResults> getSuccessfulTestResults()
Returns TestResults for the tests that were successful during current build.

Returns:

getSkippedTestResults

@Nullable
java.util.Collection<TestResults> getSkippedTestResults()
Returns TestResults for the tests that were skipped (or inconclusive) during current build.

Returns:

setTestResults

void setTestResults(@Nullable
                    java.util.Set<TestResults> successfulTestResults,
                    @Nullable
                    java.util.Set<TestResults> failedTestResults,
                    @Nullable
                    java.util.Set<TestResults> skippedTestResults)
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 appendTestResults(Set, Set, Set) instead.

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

void setTestResults(@Nullable
                    java.util.Set<TestResults> successfulTestResults,
                    @Nullable
                    java.util.Set<TestResults> failedTestResults)
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 appendTestResults(Set, Set, Set) instead.

Parameters:
successfulTestResults - a set of successful results retrieved from the build
failedTestResults - a set of failed results retrieved from the build

appendTestResults

void appendTestResults(@Nullable
                       java.util.Set<TestResults> successfulTestResults,
                       @Nullable
                       java.util.Set<TestResults> failedTestResults,
                       @Nullable
                       java.util.Set<TestResults> skippedTestResults)
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.

Parameters:
successfulTestResults - - any new successful tests
failedTestResults - - any new failed tests
skippedTestResults - - any new skipped tests

cloneAsBuildResults

BuildResults cloneAsBuildResults(BuildContext buildContext,
                                 ReasonForBuild reasonForBuild)

isCheckoutSuccess

boolean isCheckoutSuccess()

setCheckoutSuccess

void setCheckoutSuccess(boolean checkoutSuccess)


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.