|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.plan.AbstractPlan
com.atlassian.bamboo.build.AbstractBuildable
public abstract class AbstractBuildable
| 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 | |
|---|---|
AbstractBuildable()
|
|
| 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 |
BuildResultsSummaryManager |
getBuildResultsSummaryManager()
|
java.util.List<BuildResultsSummary> |
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 |
BuildResultsSummary |
getLatestBuildSummary()
Get the summary from the latest completed build |
ResultsSummary |
getLatestResultsSummary()
Get the summary from the latest completed plan |
BuildResults |
getNextBuildResults(int buildNumber)
|
int |
getNumberOfConcurrentlyRunningBuilds()
Gets the number of currently running concurrent build instances for the build |
BuildResults |
getPreviousBuildResults(int buildNumber)
Gets the first BuildResultsImpl before the passed number |
RequirementSet |
getRequirementSet()
|
boolean |
hasBuildResults()
Has the build got any build results to display? |
boolean |
isActive()
Checks if the plan has an active build(s). |
boolean |
isExecuting()
Is the build currenlty being executed? |
boolean |
isInBuildQueue()
Is the build currently being built? |
void |
removeBuildResultSummary(int buildNumber)
Remove buildResultSummary and all persisted files for given build number |
void |
setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
|
void |
setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
|
void |
setRequirementSet(RequirementSet requirementSet)
|
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.plan.Plan |
|---|
getBuildDefinition, getBuildDefinitionXml, getBuildKey, getBuildLogger, getBuildName, getFirstBuildNumber, getKey, getLabellings, getLastBuildNumber, getLastVcsRevisionKey, getName, getNextBuildNumber, getPlanKey, getProject, getRelatedLabellings, getSourceCodeDirectory, getType, hasTests, isBusy, isSuspendedFromBuilding, setBuildDefinitionXml, setBuildKey, setBuildName, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setLastVcsRevisionKey, setNextBuildNumber, setProject, setSuspendedFromBuilding |
| Methods inherited from interface com.atlassian.bamboo.Describable |
|---|
setDescription, setName |
| Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
|---|
getDescription |
| Methods inherited from interface com.atlassian.bamboo.deletion.Deletable |
|---|
isMarkedForDeletion, setMarkedForDeletion |
| Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
|---|
getId, setId |
| Constructor Detail |
|---|
public AbstractBuildable()
| Method Detail |
|---|
public long getAverageBuildDuration()
Plan
getAverageBuildDuration in interface Planpublic java.util.List<BuildResultsSummary> getBuildResultSummaries()
BuildableBuildResultsSummary objects
(oldest first), one for each build.
getBuildResultSummaries in interface Buildablepublic ResultsSummary getLatestResultsSummary()
Plan
getLatestResultsSummary in interface Planpublic BuildResultsSummary getLatestBuildSummary()
Buildable
getLatestBuildSummary in interface Buildablepublic int getNumberOfConcurrentlyRunningBuilds()
Buildable
getNumberOfConcurrentlyRunningBuilds in interface Buildablepublic BuildResultsSummary getFirstBuildSummary()
Buildable
getFirstBuildSummary in interface Buildable@NotNull public RequirementSet getRequirementSet()
getRequirementSet in interface Buildablepublic void setRequirementSet(RequirementSet requirementSet)
setRequirementSet in interface Buildablepublic void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Buildable
addBuildResultSummary in interface BuildablebuildResultsSummary - The build summarypublic void removeBuildResultSummary(int buildNumber)
Buildable
removeBuildResultSummary in interface Buildablepublic BuildResults getPreviousBuildResults(int buildNumber)
BuildableBuildResultsImpl before the passed number
getPreviousBuildResults in interface BuildableBuildResultsImpl. null if no build results can be found before that
numberpublic BuildResults getNextBuildResults(int buildNumber)
getNextBuildResults in interface Buildablepublic boolean hasBuildResults()
Buildable
hasBuildResults in interface Buildablepublic ErrorCollection validateBuild()
Plan
validateBuild in interface PlanErrorCollection with relevent error messagespublic java.lang.String getCurrentStatus()
Plan
getCurrentStatus in interface Planpublic boolean isInBuildQueue()
isInBuildQueue in interface Buildablepublic boolean isActive()
Plan
isActive in interface Planpublic boolean isExecuting()
Plan
isExecuting in interface Planpublic 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 | |||||||||