com.atlassian.bamboo.results
Interface BuildResults

All Known Implementing Classes:
BuildResultsImpl

public interface BuildResults


Method Summary
 void addBuildErrors(java.util.List<java.lang.String> errorMessages)
           
 void clearBuildErrors()
           
 BuildResults cloneAsBuildResults(BuildContext buildContext, ReasonForBuild reasonForBuild)
           
 boolean equals(java.lang.Object o)
           
 java.util.Map<java.lang.String,Artifact> getArtifacts()
           
 Build getBuild()
          Deprecated.  
 BuildChanges getBuildChanges()
           
 java.util.Date getBuildCompletedTimeStamp()
           
 long getBuildDurationInMilliseconds()
           
 java.util.List<java.lang.String> getBuildErrors()
           
 java.lang.String getBuildKey()
           
 int getBuildNumber()
           
 java.lang.String getBuildResultsKey()
           
 ExtendedBuildResultsSummary getBuildResultsSummary()
           
 int getBuildReturnCode()
           
 BuildState getBuildState()
           
 long getBuildTime()
           
 java.util.Set<Commit> getCommits()
           
 java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
          Deprecated. replaced by custom data stored in getBuildResultsSummary()
 int getFailedTestCount()
           
 java.util.Collection<TestResults> getFailedTestResults()
           
 java.util.Collection getFailedTestResultsByClass()
           
 java.util.Map getFailedTestResultsByClassAsMap()
           
 java.lang.String getFullKey()
           
 BuildResults getNextBuildResults()
           
 java.lang.String getPrettyBuildTime()
           
 BuildResults getPreviousBuildResults()
           
 ReasonForBuild getReasonForBuild()
           
 java.util.Date getStartTime()
          When was the build was started
 org.apache.commons.lang.time.StopWatch getStopWatch()
           
 int getSuccessfulTestCount()
           
 double getSuccessfulTestDuration()
           
 java.lang.String getSuccessfulTestDurationAsText()
           
 java.util.Collection<TestResults> getSuccessfulTestResults()
           
 java.util.Collection getSuccessfulTestResultsByClass()
           
 int getTestCount()
           
 TestResultsSummary getTestResults()
           
 java.util.Set<Author> getUniqueAuthors()
           
 boolean hasFailedTests()
           
 boolean hasSuccessfulTests()
           
 boolean isCurrentlyQueuedOnly()
           
 void setArtifacts(java.util.Map<java.lang.String,Artifact> artifacts)
           
 void setBuildChanges(BuildChanges buildChanges)
           
 void setBuildKey(java.lang.String buildKey)
           
 void setBuildManager(BuildManager buildManager)
           
 void setBuildNumber(int buildNumber)
           
 void setBuildReturnCode(int buildReturnCode)
           
 void setBuildState(BuildState buildState)
           
 void setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)
           
 void setDurationInMilliseconds(long buildDuration)
           
 void setFailedTestResults(java.util.List failedTestResults)
           
 void setReasonForBuild(ReasonForBuild reasonForBuild)
           
 void setStartTime(java.util.Date date)
           
 void setSuccessfulTestResults(java.util.List successfulTestResults)
           
 void setTestResults(java.util.Set<TestResults> successfulTestResults, java.util.Set<TestResults> failedTestResults)
           
 

Method Detail

getBuild

Build getBuild()
Deprecated. 


getBuildKey

java.lang.String getBuildKey()

getFullKey

java.lang.String getFullKey()

getBuildResultsSummary

ExtendedBuildResultsSummary getBuildResultsSummary()

getBuildCompletedTimeStamp

java.util.Date getBuildCompletedTimeStamp()

setDurationInMilliseconds

void setDurationInMilliseconds(long buildDuration)

getBuildDurationInMilliseconds

long getBuildDurationInMilliseconds()

setBuildNumber

void setBuildNumber(int buildNumber)

getBuildNumber

int getBuildNumber()

hasFailedTests

boolean hasFailedTests()

getFailedTestCount

int getFailedTestCount()

setFailedTestResults

void setFailedTestResults(java.util.List failedTestResults)

hasSuccessfulTests

boolean hasSuccessfulTests()

getSuccessfulTestResultsByClass

java.util.Collection getSuccessfulTestResultsByClass()

getFailedTestResultsByClass

java.util.Collection getFailedTestResultsByClass()

getFailedTestResultsByClassAsMap

java.util.Map getFailedTestResultsByClassAsMap()

getSuccessfulTestCount

int getSuccessfulTestCount()

getTestCount

int getTestCount()

setSuccessfulTestResults

void setSuccessfulTestResults(java.util.List successfulTestResults)

getReasonForBuild

ReasonForBuild getReasonForBuild()

setReasonForBuild

void setReasonForBuild(ReasonForBuild reasonForBuild)

getArtifacts

@Nullable
java.util.Map<java.lang.String,Artifact> getArtifacts()

setArtifacts

void setArtifacts(java.util.Map<java.lang.String,Artifact> artifacts)

equals

boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getSuccessfulTestDuration

double getSuccessfulTestDuration()

getSuccessfulTestDurationAsText

java.lang.String getSuccessfulTestDurationAsText()

getUniqueAuthors

java.util.Set<Author> getUniqueAuthors()

getTestResults

TestResultsSummary getTestResults()

getPreviousBuildResults

BuildResults getPreviousBuildResults()

getNextBuildResults

BuildResults getNextBuildResults()

setBuildKey

void setBuildKey(java.lang.String buildKey)

isCurrentlyQueuedOnly

boolean isCurrentlyQueuedOnly()

getStopWatch

org.apache.commons.lang.time.StopWatch getStopWatch()

getBuildTime

long getBuildTime()

getPrettyBuildTime

java.lang.String getPrettyBuildTime()

setBuildManager

void setBuildManager(BuildManager buildManager)

getBuildResultsKey

java.lang.String getBuildResultsKey()

getBuildChanges

BuildChanges getBuildChanges()

setBuildChanges

void setBuildChanges(BuildChanges buildChanges)

getBuildState

@NotNull
BuildState getBuildState()

setBuildState

void setBuildState(@NotNull
                   BuildState buildState)

getBuildReturnCode

int getBuildReturnCode()

setBuildReturnCode

void setBuildReturnCode(int buildReturnCode)

getCustomBuildData

@NotNull
java.util.Map<java.lang.String,java.lang.String> getCustomBuildData()
Deprecated. replaced by custom data stored in getBuildResultsSummary()

Returns a map of string keyed strings for storing arbitrary data

Returns:

addBuildErrors

void addBuildErrors(@Nullable
                    java.util.List<java.lang.String> errorMessages)

getBuildErrors

@NotNull
java.util.List<java.lang.String> getBuildErrors()

clearBuildErrors

void clearBuildErrors()

getFailedTestResults

@Nullable
java.util.Collection<TestResults> getFailedTestResults()

getSuccessfulTestResults

@Nullable
java.util.Collection<TestResults> getSuccessfulTestResults()

setTestResults

void setTestResults(java.util.Set<TestResults> successfulTestResults,
                    java.util.Set<TestResults> failedTestResults)

cloneAsBuildResults

BuildResults cloneAsBuildResults(BuildContext buildContext,
                                 ReasonForBuild reasonForBuild)

getStartTime

@Nullable
java.util.Date getStartTime()
When was the build was started

Returns:
Date - when this CurrentBuildResult was generated

setStartTime

void setStartTime(java.util.Date date)

getCommits

java.util.Set<Commit> getCommits()

setCustomBuildData

void setCustomBuildData(java.util.Map<java.lang.String,java.lang.String> customBuildData)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.