|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEntityObject
com.atlassian.bamboo.core.BambooEntityObject
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.build.Build |
---|
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_SUCCESS |
Constructor Summary | |
---|---|
DefaultBuild()
|
Method Summary | |
---|---|
String |
addBuildLogEntry(LogEntry logEntry)
Add a new build log entry. |
void |
addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Add the given build results summary to the build. |
void |
clearBuildLog()
Reset the build log, ready for the next build |
int |
compareTo(Object obj)
|
boolean |
equals(Object o)
|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
BuildDefinition |
getBuildDefinition()
Returns the BuildDefinition that backs this buildd |
BuildDefinitionForBuild |
getBuildDefinitionXml()
|
String |
getBuildKey()
Thie returns the build portion of the build key |
List |
getBuildLog()
Provide the latest build details. |
String |
getBuildName()
|
BuildResultsSummaryManager |
getBuildResultsSummaryManager()
|
List |
getBuildResultSummaries()
Obtains the builds total collection of BuildResultsSummary objects
(oldest first), one for each build. |
Set |
getChildBuilds()
|
BuildStrategy |
getCurrentBuildStrategy()
What is the builds current BuildStrategy ?
It uses the value once and then reverts back to the default strategy. |
String |
getCurrentStatus()
Retuns a string key as to what the status is. |
int |
getFirstBuildNumber()
What the number of the first build we have? It may not be 1 as some may have been removed! |
BuildResultsSummary |
getFirstBuildSummary()
|
String |
getKey()
Obtain the build's unique key (uppercase alphanumeric). |
List |
getLabellings()
|
int |
getLastBuildNumber()
What was the number of the lastest build (may be being built) |
Date |
getLastBuildStartTime()
When was the last time this build was built? |
BuildResultsSummary |
getLatestBuildSummary()
Get the summary from the latest build |
String |
getName()
Returns the full name for the build in the form of "projet name - build name" e.g. |
int |
getNextBuildNumber()
|
BuildResults |
getNextBuildResults(int buildNumber)
|
Set |
getParentBuilds()
|
BuildResults |
getPreviousBuildResults(int buildNumber)
Gets the first BuildResultsImpl before the passed number |
Project |
getProject()
Returns the parent Project |
File |
getSourceCodeDirectory()
Returns a file representing the source directory from the Repository |
boolean |
hasBuildResults()
Has the build got any build results to display? |
int |
hashCode()
|
boolean |
isInBuildQueue()
Is the build currenlty being built? |
boolean |
isMarkedForDeletion()
Whether or not the build has been marked for deletion |
boolean |
isMarkedForDependencyBuild()
Has the build been marked for a build following a dependent build having completed? |
boolean |
isMarkedForEditBuild()
Has the build been marked for a build following an edit? |
boolean |
isMarkedForManualBuild()
Has the build been marked for a manual build? |
boolean |
isSuspendedFromBuilding()
Checks if the build has been |
void |
markAsNeedingBuilding(ReasonForBuild reasonForBuild)
Mark the build to force a build next time it's checked. |
void |
markForDeletion()
Marks the build to be deleted. |
void |
removeBuildResultSummary(long buildNumber)
Remove the given build summary from the build |
int |
retrieveNextBuildNumber()
|
void |
setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)
|
void |
setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
|
void |
setBuilderManager(BuilderManager builderManager)
|
void |
setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
|
void |
setBuildKey(String buildKey)
Define the build's unique key (uppercase alphanumeric) |
void |
setBuildManager(BuildManager buildManager)
|
void |
setBuildName(String buildName)
|
void |
setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
|
void |
setChildBuilds(Set childBuilds)
|
void |
setFirstBuildNumber(int firstBuildNumber)
|
void |
setInBuildQueue(boolean isBuilding)
Set the is-building flag. |
void |
setKey(String key)
|
void |
setLabellings(List labellings)
|
void |
setLastBuildNumber(int lastBuildNumber)
|
void |
setLastBuildStartTime(Date lastBuildStartTime)
Set the time of the last build |
void |
setMarkedForDeletion(boolean markedForDeletion)
|
void |
setName(String name)
|
void |
setNextBuildNumber(int nextBuildNumber)
|
void |
setParentBuilds(Set parentBuilds)
|
void |
setProject(Project project)
|
void |
setSuspendedFromBuilding(boolean suspendedFromBuilding)
Sets the build to suspend temporarily |
void |
unmarkBuild()
Clear all the build flags. |
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 java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
getId, setId |
Constructor Detail |
---|
public DefaultBuild()
Method Detail |
---|
public String getKey()
Build
getKey
in interface Build
public void setKey(String key)
setKey
in interface Build
public String getBuildKey()
Build
getBuildKey
in interface Build
public void setBuildKey(String buildKey)
Build
setBuildKey
in interface Build
buildKey
- The value of the keypublic String getName()
Build
getName
in interface Build
public void setName(String name)
public String getBuildName()
getBuildName
in interface Build
public void setBuildName(String buildName)
setBuildName
in interface Build
public ErrorCollection validateBuild()
Build
validateBuild
in interface Build
ErrorCollection
with relevent error messagespublic String getCurrentStatus()
Build
getCurrentStatus
in interface Build
public BuildStrategy getCurrentBuildStrategy()
Build
BuildStrategy
?
It uses the value once and then reverts back to the default strategy. This lets you override the strategy once
and the system will revert to the default behaviour.
getCurrentBuildStrategy
in interface Build
public long getAverageBuildDuration()
Build
getAverageBuildDuration
in interface Build
public File getSourceCodeDirectory()
Build
Repository
getSourceCodeDirectory
in interface Build
public boolean isInBuildQueue()
isInBuildQueue
in interface Build
public void setInBuildQueue(boolean isBuilding)
Build
setInBuildQueue
in interface Build
isBuilding
- Is the build currently in the build pipeline?public boolean isMarkedForManualBuild()
Build
isMarkedForManualBuild
in interface Build
public boolean isMarkedForEditBuild()
Build
isMarkedForEditBuild
in interface Build
public boolean isMarkedForDependencyBuild()
Build
isMarkedForDependencyBuild
in interface Build
public void markAsNeedingBuilding(ReasonForBuild reasonForBuild)
Build
markAsNeedingBuilding
in interface Build
reasonForBuild
- The reason we want to build the buildpublic void unmarkBuild()
Build
unmarkBuild
in interface Build
public void markForDeletion()
Build
markForDeletion
in interface Build
public boolean isMarkedForDeletion()
Build
isMarkedForDeletion
in interface Build
public void setMarkedForDeletion(boolean markedForDeletion)
public void setSuspendedFromBuilding(boolean suspendedFromBuilding)
Build
setSuspendedFromBuilding
in interface Build
public boolean isSuspendedFromBuilding()
Build
isSuspendedFromBuilding
in interface Build
public List getBuildLog()
Build
getBuildLog
in interface Build
SimpleLogEntry
s. Never returns null.public String addBuildLogEntry(LogEntry logEntry)
Build
addBuildLogEntry
in interface Build
logEntry
- The data being logged
LogEntry.getUnstyledLog()
.public void clearBuildLog()
Build
clearBuildLog
in interface Build
public List getBuildResultSummaries()
Build
BuildResultsSummary
objects
(oldest first), one for each build.
getBuildResultSummaries
in interface Build
public BuildResultsSummary getLatestBuildSummary()
Build
getLatestBuildSummary
in interface Build
public int getLastBuildNumber()
Build
getLastBuildNumber
in interface Build
public int getFirstBuildNumber()
Build
getFirstBuildNumber
in interface Build
public void setLastBuildNumber(int lastBuildNumber)
setLastBuildNumber
in interface Build
public void setFirstBuildNumber(int firstBuildNumber)
setFirstBuildNumber
in interface Build
public BuildResultsSummary getFirstBuildSummary()
getFirstBuildSummary
in interface Build
public Date getLastBuildStartTime()
Build
getLastBuildStartTime
in interface Build
public void setLastBuildStartTime(Date lastBuildStartTime)
Build
setLastBuildStartTime
in interface Build
lastBuildStartTime
- the timepublic boolean hasBuildResults()
Build
hasBuildResults
in interface Build
public void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Build
addBuildResultSummary
in interface Build
buildResultsSummary
- The build summarypublic void removeBuildResultSummary(long buildNumber)
Build
removeBuildResultSummary
in interface Build
buildNumber
- the number of the build to deletepublic 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 Set getParentBuilds()
getParentBuilds
in interface Build
public void setParentBuilds(Set parentBuilds)
setParentBuilds
in interface Build
public Set getChildBuilds()
getChildBuilds
in interface Build
public void setChildBuilds(Set childBuilds)
setChildBuilds
in interface Build
public void setProject(Project project)
setProject
in interface Build
public int retrieveNextBuildNumber()
retrieveNextBuildNumber
in interface Build
public int getNextBuildNumber()
getNextBuildNumber
in interface Build
public void setNextBuildNumber(int nextBuildNumber)
setNextBuildNumber
in interface Build
public BuildDefinition getBuildDefinition()
Build
BuildDefinition
that backs this buildd
getBuildDefinition
in interface Build
BuildDefinition
object. Never null.public Project getProject()
Build
Project
getProject
in interface Build
Project
. Never nullpublic BuildResultsSummaryManager getBuildResultsSummaryManager()
public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
public void setBuildManager(BuildManager buildManager)
public void setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
public BuildDefinitionForBuild getBuildDefinitionXml()
getBuildDefinitionXml
in interface Build
public void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
setBuildDefinitionXml
in interface Build
public List getLabellings()
getLabellings
in interface Build
public void setLabellings(List labellings)
setLabellings
in interface Build
public void setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)
public void setBuilderManager(BuilderManager builderManager)
public int hashCode()
public boolean equals(Object o)
public int compareTo(Object obj)
compareTo
in interface Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |