|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.plan.AbstractPlan com.atlassian.bamboo.build.DefaultBuild
public class DefaultBuild
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
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 |
Constructor Summary | |
---|---|
DefaultBuild()
|
Method Summary | |
---|---|
void |
accept(PlanVisitor planVisitor)
|
void |
addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Add the given build results summary to the build. |
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
BuildResultsSummaryManager |
getBuildResultsSummaryManager()
|
java.util.List |
getBuildResultSummaries()
Obtains the builds total collection of BuildResultsSummary objects
(oldest first), one for each build. |
java.lang.String |
getCurrentStatus()
Retuns a string key as to what the status is. |
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 |
boolean |
isExecuting()
Is the build currenlty being executed? |
boolean |
isInBuildQueue()
Is the build currenlty being built? |
void |
removeBuildResultSummary(int buildNumber)
Remove buildResultSummary and all persisted files for given build number |
void |
setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
|
void |
setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
|
ErrorCollection |
validateBuild()
Validates the build's builder and source code locations |
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
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 |
Constructor Detail |
---|
public DefaultBuild()
Method Detail |
---|
public long getAverageBuildDuration()
Build
getAverageBuildDuration
in interface Build
public java.util.List getBuildResultSummaries()
Build
BuildResultsSummary
objects
(oldest first), one for each build.
getBuildResultSummaries
in interface Build
public ExtendedBuildResultsSummary getLatestBuildSummary()
Build
getLatestBuildSummary
in interface Build
public BuildResultsSummary getFirstBuildSummary()
Build
getFirstBuildSummary
in interface Build
public void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Build
addBuildResultSummary
in interface Build
buildResultsSummary
- The build summarypublic void removeBuildResultSummary(int buildNumber)
Build
removeBuildResultSummary
in interface Build
public BuildResults getPreviousBuildResults(int buildNumber)
Build
BuildResultsImpl
before the passed number
getPreviousBuildResults
in interface Build
BuildResultsImpl
. null if no build results can be found before that numberpublic BuildResults getNextBuildResults(int buildNumber)
getNextBuildResults
in interface Build
public boolean hasBuildResults()
Build
hasBuildResults
in interface Build
public ErrorCollection validateBuild()
Plan
validateBuild
in interface Plan
ErrorCollection
with relevent error messagespublic java.lang.String getCurrentStatus()
Plan
getCurrentStatus
in interface Plan
public boolean isBusy()
isBusy
in interface Build
public boolean isInBuildQueue()
isInBuildQueue
in interface Plan
public boolean isExecuting()
Plan
isExecuting
in interface Plan
public void accept(PlanVisitor planVisitor)
accept
in interface Plan
public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
public BuildResultsSummaryManager getBuildResultsSummaryManager()
public void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |