|
||||||||||
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.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 | |
---|---|
void |
addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Add the given build results summary to the build. |
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object o)
|
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
BuildDefinition |
getBuildDefinition()
Returns the BuildDefinition that backs this buildd |
BuildDefinitionForBuild |
getBuildDefinitionXml()
|
java.lang.String |
getBuildKey()
Thie returns the build portion of the build key |
BuildLogger |
getBuildLogger()
Returns the helper object to deal with logging |
java.lang.String |
getBuildName()
|
BuildResultsSummaryManager |
getBuildResultsSummaryManager()
|
java.util.List |
getBuildResultSummaries()
Obtains the builds total collection of BuildResultsSummary objects
(oldest first), one for each build. |
java.util.Set |
getChildBuilds()
|
java.lang.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()
|
java.lang.String |
getKey()
Obtain the build's unique key (uppercase alphanumeric). |
java.util.List |
getLabellings()
|
int |
getLastBuildNumber()
What was the number of the lastest build (may be being built) |
java.lang.String |
getLastVcsRevisionKey()
The string value representing the last build triggered. |
ExtendedBuildResultsSummary |
getLatestBuildSummary()
Get the summary from the latest build |
java.lang.String |
getName()
Returns the full name for the build in the form of "projet name - build name" e.g. |
int |
getNextBuildNumber()
The next build number represents the number of the next build result that's to be executed |
BuildResults |
getNextBuildResults(int buildNumber)
|
NotificationSet |
getNotificationSet()
|
java.util.Set |
getParentBuilds()
|
BuildResults |
getPreviousBuildResults(int buildNumber)
Gets the first BuildResultsImpl before the passed number |
Project |
getProject()
Returns the parent Project |
RequirementSet |
getRequirementSet()
|
java.io.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 |
isBusy()
Does something have a lock on the build |
boolean |
isInBuildQueue()
Is the build currenlty being built? |
boolean |
isMarkedForDeletion()
Whether or not the build has been marked for deletion |
boolean |
isSuspendedFromBuilding()
Checks if the build has been |
void |
markForDeletion()
Marks the build to be deleted. |
void |
setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)
|
void |
setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
|
void |
setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
|
void |
setBuildKey(java.lang.String buildKey)
Define the build's unique key (uppercase alphanumeric) |
void |
setBuildName(java.lang.String buildName)
|
void |
setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
|
void |
setChildBuilds(java.util.Set childBuilds)
|
void |
setFirstBuildNumber(int firstBuildNumber)
|
void |
setKey(java.lang.String key)
|
void |
setLabellings(java.util.List labellings)
|
void |
setLastBuildNumber(int lastBuildNumber)
|
void |
setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
|
void |
setMarkedForDeletion(boolean markedForDeletion)
|
void |
setNextBuildNumber(int nextBuildNumber)
|
void |
setNotificationSet(NotificationSet notificationSet)
|
void |
setParentBuilds(java.util.Set parentBuilds)
|
void |
setProject(Project project)
|
void |
setRequirementSet(RequirementSet requirementSet)
|
void |
setSuspendedFromBuilding(boolean suspendedFromBuilding)
Sets the build to suspend temporarily |
void |
unMarkForDeletion()
Build will no longer be marked for deletion |
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 |
Constructor Detail |
---|
public DefaultBuild()
Method Detail |
---|
public java.lang.String getKey()
Build
getKey
in interface Build
public void setKey(java.lang.String key)
setKey
in interface Build
public java.lang.String getBuildKey()
Build
getBuildKey
in interface Build
public void setBuildKey(java.lang.String buildKey)
Build
setBuildKey
in interface Build
buildKey
- The value of the keypublic java.lang.String getName()
Build
getName
in interface Build
public java.lang.String getBuildName()
getBuildName
in interface Build
public void setBuildName(java.lang.String buildName)
setBuildName
in interface Build
public ErrorCollection validateBuild()
Build
validateBuild
in interface Build
ErrorCollection
with relevent error messagespublic java.lang.String getCurrentStatus()
Build
getCurrentStatus
in interface Build
public long getAverageBuildDuration()
Build
getAverageBuildDuration
in interface Build
public java.io.File getSourceCodeDirectory() throws RepositoryException
Build
Repository
getSourceCodeDirectory
in interface Build
RepositoryException
public boolean isInBuildQueue()
isInBuildQueue
in interface Build
public boolean isBusy()
isBusy
in interface Build
public void markForDeletion()
Build
markForDeletion
in interface Build
public void unMarkForDeletion()
Build
unMarkForDeletion
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 BuildLogger getBuildLogger()
Build
getBuildLogger
in interface Build
BuildLogger
. @NotNullpublic 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 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 java.lang.String getLastVcsRevisionKey()
Build
getLastVcsRevisionKey
in interface Build
public void setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
setLastVcsRevisionKey
in interface Build
public BuildResultsSummary getFirstBuildSummary()
getFirstBuildSummary
in interface Build
public boolean hasBuildResults()
Build
hasBuildResults
in interface Build
public void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
Build
addBuildResultSummary
in interface Build
buildResultsSummary
- The build summarypublic 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 java.util.Set getParentBuilds()
getParentBuilds
in interface Build
public void setParentBuilds(java.util.Set parentBuilds)
setParentBuilds
in interface Build
public java.util.Set getChildBuilds()
getChildBuilds
in interface Build
public void setChildBuilds(java.util.Set childBuilds)
setChildBuilds
in interface Build
public void setProject(Project project)
setProject
in interface Build
public int getNextBuildNumber()
Build
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 setBuildExecutionManager(BuildExecutionManager buildExecutionManager)
public BuildDefinitionForBuild getBuildDefinitionXml()
getBuildDefinitionXml
in interface Build
public void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
setBuildDefinitionXml
in interface Build
public java.util.List getLabellings()
getLabellings
in interface Build
public void setLabellings(java.util.List labellings)
setLabellings
in interface Build
public NotificationSet getNotificationSet()
getNotificationSet
in interface Build
public void setNotificationSet(NotificationSet notificationSet)
setNotificationSet
in interface Build
@NotNull public RequirementSet getRequirementSet()
getRequirementSet
in interface Build
public void setRequirementSet(RequirementSet requirementSet)
setRequirementSet
in interface Build
public void setBuildDefinitionManager(BuildDefinitionManager buildDefinitionManager)
public int hashCode()
hashCode
in class com.atlassian.core.bean.EntityObject
public boolean equals(java.lang.Object o)
equals
in class com.atlassian.core.bean.EntityObject
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |