com.atlassian.bamboo.build
Class BuildObjectForTests

java.lang.Object
  extended by com.atlassian.bamboo.build.BuildObjectForTests
All Implemented Interfaces:
Build, BuildDefinition, BuildDefinitionForBuild, BuildDefinitionXml, BambooObject, Project, BuildPlanDefinition, java.io.Serializable
Direct Known Subclasses:
TestBuildObjectForTests

public class BuildObjectForTests
extends java.lang.Object
implements Project, Build, BuildDefinition, BuildDefinitionForBuild

Information about a build under Continuous Integration.

See Also:
Serialized Form

Field Summary
protected  java.util.List myBuildResultSummaries
           
 
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
BuildObjectForTests()
          Simple package constructor for testing
BuildObjectForTests(Repository repository, java.lang.String name)
          Create a build
BuildObjectForTests(Repository repository, java.lang.String name, java.lang.String emailAddress)
          Create a build
 
Method Summary
 void addArtifact(Artifact artifact)
          Add a new artifact to the existing build artifacts
 void addBuildDependency(java.lang.String buildKey)
           
 java.lang.String addBuildLogEntry(LogEntry logEntry)
           
 java.lang.String addBuildLogEntry(java.lang.String entryDescription)
          Add a new entry to the build log
 void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
          Add the given build results summary to the build.
 void clearBuildLog()
           
 boolean equals(java.lang.Object o)
          We're only using the build name to compare builds
 java.util.Collection<Artifact> getArtifactDefinitions()
           
 java.util.Map getArtifacts()
          Get the custom Artifacts.
 long getAverageBuildDuration()
          Returns an average duration of the recent builds
 Build getBuild()
           
 java.util.List getBuildChangedEmailList()
          Who wants to know when the build changes? A list of individual email addresses.
 java.lang.String getBuildChangedEmails()
          Who wants to know when the build changes? One or more email addresses (comma separated list)
 BuildDefinition getBuildDefinition()
          Returns the BuildDefinition that backs this buildd
 BuildDefinitionForBuild getBuildDefinitionXml()
           
 java.util.List getBuildDependencies()
          The names of the builds that need to be build when this build is built?
 java.util.Set getBuildDependenciesSet()
           
 Builder getBuilder()
          Obtain the build's Builder.
 BuilderManager getBuilderManager()
           
 java.lang.String getBuildKey()
          Thie returns the build portion of the build key
 java.util.Collection getBuildLog()
          Provide the latest build details.
 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 (most recent first), one for each build.
 java.util.List getBuilds()
          Returns all Build associated with the Project.
 BuildStrategy getBuildStrategy()
          Returns to BuildStrategy that the user actually selects
 java.util.Set getChildBuilds()
           
 java.util.Map getConfigObjects()
          Returns a map of objects generated by the plugins.
 BuildStrategy getCurrentBuildStrategy()
          What is the builds current BuildStrategy?

If the build has never been built, it returns a com.atlassian.bamboo.build.strategy.InitialBootstapBuildStrategy otherwise it returns the build specific BuildStrategy.

 java.lang.String getCurrentStatus()
          Returns the string representatioin the current status of a build.
 java.util.Map getCustomConfiguration()
          A map consisting of String key and String value pairs.
 BuildDefinition getDefaultBuildDefinition()
           
 EmailStrategy getEmailStrategy()
          What email strategy does this build have?
 java.util.List getFieldValueItems()
           
 int getFirstBuildNumber()
          What the number of the first build we have? It may not be 1 as some may have been removed!
 BuildResultsSummary getFirstBuildSummary()
           
 long getId()
           
 java.lang.String getKey()
          Returns key of the project.
 java.util.List getLabellings()
           
 int getLastBuildNumber()
          What was the number of the lastest build (may be being built)
 java.util.Date getLastBuildStartTime()
          When was the last time this build was 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()
          Obtain the build's name
 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()
           
 long getNumberOfBuildSummaries()
           
 java.util.Set getParentBuilds()
           
 int getPollingPeriod()
          How long should we wait between checking the build to see if it need building?
 BuildResults getPreviousBuildResults(int buildNumber)
          Gets the first BuildResultsImpl before the passed number
 Project getProject()
          Returns the parent Project
 Repository getRepository()
          Obtain the build's Repository.
 RequirementSet getRequirementSet()
           
 java.io.File getSourceCodeDirectory()
          Returns a file representing the source directory from the Repository
 java.lang.String getXmlData()
           
 XmppMessageSender getXmppMessageSender()
          The build's option IM message server configuration
 boolean hasArtifacts()
           
 boolean hasBuildDependency(java.lang.String buildKey)
           
 boolean hasBuildResults()
          Has the build got any build results to display?
 int hashCode()
          IntelliJ generated hash
 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 isMarkedForEditBuild()
           
 boolean isMarkedForManualBuild()
          Has a manual build been requested for this build?
 boolean isSuspendedFromBuilding()
          Checks if the build has been
 void markAsNeedingBuilding(ReasonForBuild reasonForBuild)
           
 void markForDeletion()
          Marks the build to be deleted.
 void removeBuildDependency(java.lang.String buildKey)
           
 void setArtifacts(java.util.Map<java.lang.String,Artifact> artifacts)
          Replace the build's artifacts with these ones.
 void setBuild(Build build)
           
 void setBuildChangedEmails(java.lang.String emailAddress)
          Define who is notified of build results by email
 void setBuildDefinition(BuildDefinitionForBuild buildDefinition)
           
 void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
           
 void setBuildDependencies(java.util.Set buildDependencies)
          Set of String represneting the build keys
 void setBuilder(Builder builder)
          Set the build's builder.
 void setBuilderManager(BuilderManager builderManager)
           
 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 setBuildResultSummaries(java.util.List buildResultSummaries)
          Legacy left over method (this is the extreme version of build result summaries)
 void setBuildStrategy(BuildStrategy buildStrategy)
          Set the strategy to override the default build strategy.
 void setChildBuilds(java.util.Set childBuilds)
           
 void setConfigObjects(java.util.Map configObjects)
           
 void setCustomConfiguration(java.util.Map configMap)
          A map of String key and String value pairs, representing custom
 void setEmailStrategy(EmailStrategy emailStrategy)
          Define when build build email need to be sent
 void setFieldValueItems(java.util.List fieldValueItems)
           
 void setFirstBuildNumber(int firstBuildNumber)
           
 void setId(long id)
           
 void setInBuildQueue(boolean isBuilding)
          Set the is-building flag.
 void setKey(java.lang.String key)
          Sets the key for the project.
 void setLabellings(java.util.List labellings)
           
 void setLastBuildNumber(int lastBuildNumber)
           
 void setLastBuildStartTime(java.util.Date lastBuildTime)
          Set the time of the last build
 void setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
           
 void setName(java.lang.String name)
           
 void setNextBuildNumber(int nextBuildNumber)
           
 void setNotificationSet(NotificationSet notificationSet)
           
 void setParentBuilds(java.util.Set parentBuilds)
           
 void setPollingPeriod(int pollingPeriod)
          How long should we wait between checking the build to see if it need building?
 void setProject(Project project)
           
 void setRepository(Repository repository)
          Set the build's source code repository.
 void setRequirementSet(RequirementSet requirementSet)
           
 void setSuspendedFromBuilding(boolean suspendFromBuilding)
          Sets the build to suspend temporarily
 void setWorkingDirectory(java.lang.String buildDirectory)
           
 void setXmlData(java.lang.String xmlData)
           
 void setXmppMessageSender(XmppMessageSender xmppMessageSender)
          The build's option IM message server configuration
 void unmarkBuild()
           
 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 java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myBuildResultSummaries

protected java.util.List myBuildResultSummaries
Constructor Detail

BuildObjectForTests

public BuildObjectForTests()
Simple package constructor for testing


BuildObjectForTests

public BuildObjectForTests(Repository repository,
                           java.lang.String name)
Create a build

Parameters:
repository - The Repository containing the build
name - The name of the build

BuildObjectForTests

public BuildObjectForTests(Repository repository,
                           java.lang.String name,
                           java.lang.String emailAddress)
Create a build

Parameters:
repository - The Repository containing the build
name - The name of the build
emailAddress - The build email notification address
Method Detail

getLastVcsRevisionKey

public java.lang.String getLastVcsRevisionKey()
Description copied from interface: Build
The string value representing the last build triggered. Will be null if nothing has been built. The value is parseable by the individual repositories

Specified by:
getLastVcsRevisionKey in interface Build
Returns:

setLastVcsRevisionKey

public void setLastVcsRevisionKey(java.lang.String lastVcsRevisionKey)
Specified by:
setLastVcsRevisionKey in interface Build

getBuildLogger

public BuildLogger getBuildLogger()
Description copied from interface: Build
Returns the helper object to deal with logging

Specified by:
getBuildLogger in interface Build
Returns:
A BuildLogger. @NotNull

getParentBuilds

public java.util.Set getParentBuilds()
Specified by:
getParentBuilds in interface Build

getArtifactDefinitions

public java.util.Collection<Artifact> getArtifactDefinitions()
Specified by:
getArtifactDefinitions in interface BuildPlanDefinition

setParentBuilds

public void setParentBuilds(java.util.Set parentBuilds)
Specified by:
setParentBuilds in interface Build

getChildBuilds

public java.util.Set getChildBuilds()
Specified by:
getChildBuilds in interface Build

setChildBuilds

public void setChildBuilds(java.util.Set childBuilds)
Specified by:
setChildBuilds in interface Build

getCurrentStatus

public java.lang.String getCurrentStatus()
Description copied from interface: Project
Returns the string representatioin the current status of a build. Mirrors Build@getCurrentStatus. It will return "current" if any plan is building, and "fail" if any plan is failing.

Specified by:
getCurrentStatus in interface Build
Specified by:
getCurrentStatus in interface Project
Returns:
a String

getBuildName

public java.lang.String getBuildName()
Specified by:
getBuildName in interface Build

setBuildName

public void setBuildName(java.lang.String buildName)
Specified by:
setBuildName in interface Build

getBuildDefinitionXml

public BuildDefinitionForBuild getBuildDefinitionXml()
Specified by:
getBuildDefinitionXml in interface Build

setBuildDefinitionXml

public void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
Specified by:
setBuildDefinitionXml in interface Build

setFieldValueItems

public void setFieldValueItems(java.util.List fieldValueItems)

setNextBuildNumber

public void setNextBuildNumber(int nextBuildNumber)
Specified by:
setNextBuildNumber in interface Build

setLastBuildNumber

public void setLastBuildNumber(int lastBuildNumber)
Specified by:
setLastBuildNumber in interface Build

setFirstBuildNumber

public void setFirstBuildNumber(int firstBuildNumber)
Specified by:
setFirstBuildNumber in interface Build

getNextBuildNumber

public int getNextBuildNumber()
Description copied from interface: Build
The next build number represents the number of the next build result that's to be executed

Specified by:
getNextBuildNumber in interface Build
Returns:
a build number, starting with 1

setKey

public void setKey(java.lang.String key)
Description copied from interface: Project
Sets the key for the project. Must not be null

Specified by:
setKey in interface Build
Specified by:
setKey in interface Project

getBuildKey

public java.lang.String getBuildKey()
Description copied from interface: Build
Thie returns the build portion of the build key

Specified by:
getBuildKey in interface Build
Returns:
String

setProject

public void setProject(Project project)
Specified by:
setProject in interface Build

setBuild

public void setBuild(Build build)
Specified by:
setBuild in interface BuildDefinitionForBuild

setBuildDefinition

public void setBuildDefinition(BuildDefinitionForBuild buildDefinition)

getXmlData

public java.lang.String getXmlData()
Specified by:
getXmlData in interface BuildDefinitionXml

setXmlData

public void setXmlData(java.lang.String xmlData)
Specified by:
setXmlData in interface BuildDefinitionXml

getBuildDefinition

public BuildDefinition getBuildDefinition()
Description copied from interface: Build
Returns the BuildDefinition that backs this buildd

Specified by:
getBuildDefinition in interface Build
Returns:
BuildDefinition object. Never null.

getId

public long getId()
Specified by:
getId in interface BambooObject

setId

public void setId(long id)
Specified by:
setId in interface BambooObject

getProject

public Project getProject()
Description copied from interface: Build
Returns the parent Project

Specified by:
getProject in interface Build
Returns:
Project. Never null

getBuild

public Build getBuild()
Specified by:
getBuild in interface BuildDefinitionForBuild

getCurrentBuildStrategy

public BuildStrategy getCurrentBuildStrategy()
What is the builds current BuildStrategy?

If the build has never been built, it returns a com.atlassian.bamboo.build.strategy.InitialBootstapBuildStrategy otherwise it returns the build specific BuildStrategy.

Returns:
The currect build strategy

getBuildStrategy

public BuildStrategy getBuildStrategy()
Description copied from interface: BuildDefinition
Returns to BuildStrategy that the user actually selects

Specified by:
getBuildStrategy in interface BuildDefinition
Returns:
the selected BuildStrategy

setBuildStrategy

public void setBuildStrategy(BuildStrategy buildStrategy)
Set the strategy to override the default build strategy.

Specified by:
setBuildStrategy in interface BuildDefinition
Parameters:
buildStrategy - The next build strategy to use.

getRepository

public Repository getRepository()
Obtain the build's Repository.

Specified by:
getRepository in interface BuildDefinition
Specified by:
getRepository in interface BuildPlanDefinition
Returns:
The Repository

setRepository

public void setRepository(Repository repository)
Set the build's source code repository.

Specified by:
setRepository in interface BuildDefinition
Parameters:
repository - The source repoisitory

getPollingPeriod

public int getPollingPeriod()
How long should we wait between checking the build to see if it need building?

Specified by:
getPollingPeriod in interface BuildDefinition
Returns:
the time in seconds

setPollingPeriod

public void setPollingPeriod(int pollingPeriod)
How long should we wait between checking the build to see if it need building?

Specified by:
setPollingPeriod in interface BuildDefinition
Parameters:
pollingPeriod - The time in seconds

getBuilder

public Builder getBuilder()
Obtain the build's Builder.

Specified by:
getBuilder in interface BuildDefinition
Specified by:
getBuilder in interface BuildPlanDefinition
Returns:
The builder

setBuilder

public void setBuilder(Builder builder)
Set the build's builder.

Specified by:
setBuilder in interface BuildDefinition
Parameters:
builder - the builder

getName

public java.lang.String getName()
Obtain the build's name

Specified by:
getName in interface Build
Specified by:
getName in interface Project
Returns:
The build's name

setName

public void setName(java.lang.String name)
Specified by:
setName in interface Project

getKey

public java.lang.String getKey()
Description copied from interface: Project
Returns key of the project. Keys are capital, alphanumeric strings.

Specified by:
getKey in interface Build
Specified by:
getKey in interface Project
Returns:
key of project. Must not be null.

getDefaultBuildDefinition

public BuildDefinition getDefaultBuildDefinition()

getBuilds

public java.util.List getBuilds()
Description copied from interface: Project
Returns all Build associated with the Project. Returns Collections.EMPTY_LIST` if there are no Builds for the project.

Specified by:
getBuilds in interface Project
Returns:
List of Builds. Collections.EMPTY_LIST` if no builds.

getLabellings

public java.util.List getLabellings()
Specified by:
getLabellings in interface Build
Specified by:
getLabellings in interface Project

setLabellings

public void setLabellings(java.util.List labellings)
Specified by:
setLabellings in interface Build
Specified by:
setLabellings in interface Project

setBuildKey

public void setBuildKey(java.lang.String buildKey)
Description copied from interface: Build
Define the build's unique key (uppercase alphanumeric)

Specified by:
setBuildKey in interface Build
Parameters:
buildKey - The value of the key

getBuildChangedEmails

public java.lang.String getBuildChangedEmails()
Who wants to know when the build changes? One or more email addresses (comma separated list)

Specified by:
getBuildChangedEmails in interface BuildDefinition
Returns:
The build email addresses

setBuildChangedEmails

public void setBuildChangedEmails(java.lang.String emailAddress)
Define who is notified of build results by email

Specified by:
setBuildChangedEmails in interface BuildDefinition
Parameters:
emailAddress - The build email address

getBuildChangedEmailList

public java.util.List getBuildChangedEmailList()
Who wants to know when the build changes? A list of individual email addresses.

Specified by:
getBuildChangedEmailList in interface BuildDefinition
Returns:
The collection of emails.

getLastBuildNumber

public int getLastBuildNumber()
What was the number of the lastest build (may be being built)

Specified by:
getLastBuildNumber in interface Build
Returns:
the build number, zero if the build has not been built

getFirstBuildNumber

public int getFirstBuildNumber()
What the number of the first build we have? It may not be 1 as some may have been removed!

Specified by:
getFirstBuildNumber in interface Build
Returns:
The number of the first build

addBuildResultSummary

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

Specified by:
addBuildResultSummary in interface Build
Parameters:
buildResultsSummary - The build summary

setBuildResultSummaries

public void setBuildResultSummaries(java.util.List buildResultSummaries)
Legacy left over method (this is the extreme version of build result summaries)

Parameters:
buildResultSummaries -

getBuildResultSummaries

public java.util.List getBuildResultSummaries()
Obtains the builds total collection of BuildResultsSummary objects (most recent first), one for each build. EW 01/11/2006 - Moved to a hibernated source for build result summaries.

Specified by:
getBuildResultSummaries in interface Build
Returns:
The collection of build summary objects

setInBuildQueue

public void setInBuildQueue(boolean isBuilding)
Set the is-building flag.

Parameters:
isBuilding - Is the build currently in the build pipeline?

isInBuildQueue

public boolean isInBuildQueue()
Is the build currenlty being built?

Specified by:
isInBuildQueue in interface Build
Returns:
true iff is currently in the build pipleline

getLastBuildStartTime

public java.util.Date getLastBuildStartTime()
When was the last time this build was built?

Returns:
The date, null if it has not been build.

setLastBuildStartTime

public void setLastBuildStartTime(java.util.Date lastBuildTime)
Set the time of the last build

Parameters:
lastBuildTime - the time

setWorkingDirectory

public void setWorkingDirectory(java.lang.String buildDirectory)
Specified by:
setWorkingDirectory in interface BuildDefinition

hasBuildResults

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

Specified by:
hasBuildResults in interface Build
Returns:
true if the build has been built, false otherwise

getEmailStrategy

public EmailStrategy getEmailStrategy()
What email strategy does this build have?


setEmailStrategy

public void setEmailStrategy(EmailStrategy emailStrategy)
Define when build build email need to be sent

Parameters:
emailStrategy - the strategy to use from now on

setBuildDependencies

public void setBuildDependencies(java.util.Set buildDependencies)
Description copied from interface: BuildDefinition
Set of String represneting the build keys

Specified by:
setBuildDependencies in interface BuildDefinition

getBuildDependenciesSet

public java.util.Set getBuildDependenciesSet()

addBuildDependency

public void addBuildDependency(java.lang.String buildKey)
Specified by:
addBuildDependency in interface BuildDefinition

removeBuildDependency

public void removeBuildDependency(java.lang.String buildKey)
Specified by:
removeBuildDependency in interface BuildDefinition

hasBuildDependency

public boolean hasBuildDependency(java.lang.String buildKey)
Specified by:
hasBuildDependency in interface BuildDefinition

getBuildDependencies

public java.util.List getBuildDependencies()
The names of the builds that need to be build when this build is built?

Specified by:
getBuildDependencies in interface BuildDefinition
Returns:
The names of the builds that need building

hasArtifacts

public boolean hasArtifacts()

getArtifacts

public java.util.Map getArtifacts()
Description copied from interface: BuildDefinition
Get the custom Artifacts.

Specified by:
getArtifacts in interface BuildDefinition
Returns:
The collection of artifacts, null, if the build does not have any artifacts

setArtifacts

public void setArtifacts(java.util.Map<java.lang.String,Artifact> artifacts)
Description copied from interface: BuildDefinition
Replace the build's artifacts with these ones.

Specified by:
setArtifacts in interface BuildDefinition

addArtifact

public void addArtifact(Artifact artifact)
Description copied from interface: BuildDefinition
Add a new artifact to the existing build artifacts

Specified by:
addArtifact in interface BuildDefinition

getCustomConfiguration

public java.util.Map getCustomConfiguration()
Description copied from interface: BuildDefinition
A map consisting of String key and String value pairs. This is where fields which starts with custom (eg. custom.test.id) goes to

Specified by:
getCustomConfiguration in interface BuildDefinition
Specified by:
getCustomConfiguration in interface BuildPlanDefinition
Returns:
May be null

setCustomConfiguration

public void setCustomConfiguration(java.util.Map configMap)
Description copied from interface: BuildDefinition
A map of String key and String value pairs, representing custom

Specified by:
setCustomConfiguration in interface BuildDefinition
Parameters:
configMap - - can be null

getLatestBuildSummary

public ExtendedBuildResultsSummary getLatestBuildSummary()
Get the summary from the latest build

Specified by:
getLatestBuildSummary in interface Build
Returns:
The summary info for the last completed build. Returns null if there are no build results for this build

getFirstBuildSummary

public BuildResultsSummary getFirstBuildSummary()
Specified by:
getFirstBuildSummary in interface Build

getNumberOfBuildSummaries

public long getNumberOfBuildSummaries()

getXmppMessageSender

public XmppMessageSender getXmppMessageSender()
Description copied from interface: BuildDefinition
The build's option IM message server configuration

Specified by:
getXmppMessageSender in interface BuildDefinition

setXmppMessageSender

public void setXmppMessageSender(XmppMessageSender xmppMessageSender)
Description copied from interface: BuildDefinition
The build's option IM message server configuration

Specified by:
setXmppMessageSender in interface BuildDefinition

getBuildLog

public java.util.Collection getBuildLog()
Provide the latest build details. This is not persisted.

Returns:
The collection of log strings

addBuildLogEntry

public java.lang.String addBuildLogEntry(java.lang.String entryDescription)
Add a new entry to the build log

Parameters:
entryDescription - The entry to add

addBuildLogEntry

public java.lang.String addBuildLogEntry(LogEntry logEntry)

isMarkedForManualBuild

public boolean isMarkedForManualBuild()
Has a manual build been requested for this build?


isMarkedForEditBuild

public boolean isMarkedForEditBuild()

markAsNeedingBuilding

public void markAsNeedingBuilding(ReasonForBuild reasonForBuild)

unmarkBuild

public void unmarkBuild()

validateBuild

public ErrorCollection validateBuild()
Description copied from interface: Build
Validates the build's builder and source code locations

Specified by:
validateBuild in interface Build
Returns:
and ErrorCollection with relevent error messages

getFieldValueItems

public java.util.List getFieldValueItems()

getSourceCodeDirectory

public java.io.File getSourceCodeDirectory()
                                    throws RepositoryException
Description copied from interface: Build
Returns a file representing the source directory from the Repository

Specified by:
getSourceCodeDirectory in interface Build
Returns:
file`representing the source directory. null iff an exception has been thrown
Throws:
RepositoryException

getAverageBuildDuration

public long getAverageBuildDuration()
Description copied from interface: Build
Returns an average duration of the recent builds

Specified by:
getAverageBuildDuration in interface Build
Returns:
The duration in milliseconds

getPreviousBuildResults

public BuildResults getPreviousBuildResults(int buildNumber)
Description copied from interface: Build
Gets the first BuildResultsImpl before the passed number

Specified by:
getPreviousBuildResults in interface Build
Returns:
BuildResultsImpl. null if no build results can be found before that number

getNextBuildResults

public BuildResults getNextBuildResults(int buildNumber)
Specified by:
getNextBuildResults in interface Build

markForDeletion

public void markForDeletion()
Description copied from interface: Build
Marks the build to be deleted.

Specified by:
markForDeletion in interface Build

unMarkForDeletion

public void unMarkForDeletion()
Description copied from interface: Build
Build will no longer be marked for deletion

Specified by:
unMarkForDeletion in interface Build

isMarkedForDeletion

public boolean isMarkedForDeletion()
Description copied from interface: Build
Whether or not the build has been marked for deletion

Specified by:
isMarkedForDeletion in interface Build
Returns:

setSuspendedFromBuilding

public void setSuspendedFromBuilding(boolean suspendFromBuilding)
Description copied from interface: Build
Sets the build to suspend temporarily

Specified by:
setSuspendedFromBuilding in interface Build

isSuspendedFromBuilding

public boolean isSuspendedFromBuilding()
Description copied from interface: Build
Checks if the build has been

Specified by:
isSuspendedFromBuilding in interface Build
Returns:

clearBuildLog

public void clearBuildLog()

equals

public boolean equals(java.lang.Object o)
We're only using the build name to compare builds

Overrides:
equals in class java.lang.Object
Parameters:
o - object we are comparing
Returns:
usual stuff

hashCode

public int hashCode()
IntelliJ generated hash

Overrides:
hashCode in class java.lang.Object
Returns:
hash

getBuilderManager

public BuilderManager getBuilderManager()

setBuilderManager

public void setBuilderManager(BuilderManager builderManager)

getBuildResultsSummaryManager

public BuildResultsSummaryManager getBuildResultsSummaryManager()

setBuildResultsSummaryManager

public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)

getNotificationSet

public NotificationSet getNotificationSet()
Specified by:
getNotificationSet in interface Build

setNotificationSet

public void setNotificationSet(NotificationSet notificationSet)
Specified by:
setNotificationSet in interface Build

getRequirementSet

@NotNull
public RequirementSet getRequirementSet()
Specified by:
getRequirementSet in interface Build

setRequirementSet

public void setRequirementSet(RequirementSet requirementSet)
Specified by:
setRequirementSet in interface Build

isBusy

public boolean isBusy()
Description copied from interface: Build
Does something have a lock on the build

Specified by:
isBusy in interface Build
Returns:

getConfigObjects

public java.util.Map getConfigObjects()
Description copied from interface: BuildDefinition
Returns a map of objects generated by the plugins. Each plugin is responsible for populating this list, so there's no final guarantee that a key is unique.

Specified by:
getConfigObjects in interface BuildDefinition
Returns:
A Map with a String as a key and an arbritary objects as the value.

setConfigObjects

public void setConfigObjects(java.util.Map configObjects)
Specified by:
setConfigObjects in interface BuildDefinition


Copyright © 2008 Atlassian Pty Ltd. All Rights Reserved.