com.atlassian.bamboo.build
Interface Build

All Superinterfaces:
BambooObject, Describable, DescriptionProvider, NameProvider, Plan
All Known Implementing Classes:
BuildObjectForTests, DefaultBuild, TestBuildObjectForTests

public interface Build
extends Plan

This interface describes a Bamboo Build Plan


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.plan.Plan
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
 
Method Summary
 void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
          Add the given build results summary to the build.
 long getAverageBuildDuration()
          Returns an average duration of the recent builds
 java.util.List getBuildResultSummaries()
          Obtains the builds total collection of BuildResultsSummary objects (oldest first), one for each build.
 BuildResultsSummary getFirstBuildSummary()
          Get the first build result
 ExtendedBuildResultsSummary getLatestBuildSummary()
          Get the summary from the latest build
 BuildResults getNextBuildResults(int buildNumber)
           
 BuildResults getPreviousBuildResults(int buildNumber)
          Gets the first BuildResultsImpl before the passed number
 boolean hasBuildResults()
          Has the build got any build results to display?
 boolean isBusy()
          Does something have a lock on the build
 void removeBuildResultSummary(int buildNumber)
          Remove buildResultSummary and all persisted files for given build number
 
Methods inherited from interface com.atlassian.bamboo.plan.Plan
accept, getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getCurrentStatus, getFirstBuildNumber, getKey, getLabellings, getLastBuildNumber, getLastVcsRevisionKey, getName, getNextBuildNumber, getNotificationSet, getPlanKey, getProject, getRelatedLabellings, getRequirementSet, getSourceCodeDirectory, isExecuting, isInBuildQueue, isMarkedForDeletion, isSuspendedFromBuilding, markForDeletion, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setLastVcsRevisionKey, setNextBuildNumber, setNotificationSet, setProject, setRequirementSet, setSuspendedFromBuilding, unMarkForDeletion, validateBuild
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
getId, setId
 
Methods inherited from interface com.atlassian.bamboo.Describable
setDescription, setName
 
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
 

Method Detail

getAverageBuildDuration

long getAverageBuildDuration()
Returns an average duration of the recent builds

Returns:
The duration in milliseconds

getBuildResultSummaries

java.util.List getBuildResultSummaries()
Obtains the builds total collection of BuildResultsSummary objects (oldest first), one for each build.

Returns:
The collection of build summary objects

getLatestBuildSummary

@Nullable
ExtendedBuildResultsSummary getLatestBuildSummary()
Get the summary from the latest build

Returns:
The summary info for the last completed build. Returns null if there are no build results for this build

getFirstBuildSummary

BuildResultsSummary getFirstBuildSummary()
Get the first build result

Returns:
result

hasBuildResults

boolean hasBuildResults()
Has the build got any build results to display?

Returns:
true if the build has been built, false otherwise

addBuildResultSummary

void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Add the given build results summary to the build.

Parameters:
buildResultsSummary - The build summary

removeBuildResultSummary

void removeBuildResultSummary(int buildNumber)
Remove buildResultSummary and all persisted files for given build number

Parameters:
buildNumber -

getPreviousBuildResults

BuildResults getPreviousBuildResults(int buildNumber)
Gets the first BuildResultsImpl before the passed number

Parameters:
buildNumber -
Returns:
BuildResultsImpl. null if no build results can be found before that number

getNextBuildResults

BuildResults getNextBuildResults(int buildNumber)

isBusy

boolean isBusy()
Does something have a lock on the build

Returns:


Copyright © 2010 Atlassian. All Rights Reserved.