com.atlassian.bamboo.build
Class BuildObjectForTests

java.lang.Object
  extended by com.atlassian.bamboo.build.BuildObjectForTests
All Implemented Interfaces:
Buildable, BuildDefinition, BuildDefinitionForBuild, BuildDefinitionXml, PartialBuildDefinition, Chain, BambooIdProvider, BambooObject, Deletable, Describable, ImmutableChain, ImmutableDeletable, ImmutablePlan, ImmutableTopLevelPlan, Plan, PlanIdentifier, TopLevelPlan, Project, ProjectIdentifier, DescriptionProvider, NameProvider, BuildPlanDefinition, java.io.Serializable
Direct Known Subclasses:
TestBuildObjectForTests

Deprecated.

@Deprecated
public class BuildObjectForTests
extends java.lang.Object
implements Project, TopLevelPlan, Buildable, BuildDefinition, BuildDefinitionForBuild

Information about a build under Continuous Integration.

See Also:
Serialized Form

Field Summary
protected  java.util.List myBuildResultSummaries
          Deprecated.  
 
Fields inherited from interface com.atlassian.bamboo.plan.cache.ImmutablePlan
MAX_NUMBER_LOG_ENTRIES, MAX_PREVIOUS_BUILD_FOR_AVE, STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_NOT_RUN, STATUS_SUCCESS
 
Constructor Summary
BuildObjectForTests()
          Deprecated. Simple package constructor for testing
BuildObjectForTests(Repository repository, java.lang.String name)
          Deprecated. Create a build
BuildObjectForTests(Repository repository, java.lang.String name, java.lang.String emailAddress)
          Deprecated. Create a build
 
Method Summary
 java.lang.String addBuildLogEntry(LogEntry logEntry)
          Deprecated.  
 java.lang.String addBuildLogEntry(java.lang.String entryDescription)
          Deprecated. Add a new entry to the build log
 void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
          Deprecated. Add the given build results summary to the build.
 ChainStage addNewStage(java.lang.String name, java.lang.String description, boolean manual)
          Deprecated. Adds a new stage and returns the stage
 void addStage(ChainStage chainStage)
          Deprecated.  
 void clearBuildLog()
          Deprecated.  
 boolean containsStage(java.lang.String stageName)
          Deprecated. Checks whether or not a stage exists in this chain by stage name.
 boolean equals(java.lang.Object o)
          Deprecated. We're only using the build name to compare builds
 java.util.List<Job> getAllJobs()
          Deprecated. Note: Does not include Jobs that are marked for deletion.
 java.util.List<ChainStage> getAllStages()
          Deprecated. Get Stages of the Chain

Note that this includes ChainStages that have been marked for deletion

 long getAverageBuildDuration()
          Deprecated. Returns an average duration of the recent builds
 BranchIntegrationConfiguration getBranchIntegrationConfiguration()
          Deprecated. Returns ChainBranch integration strategy settings, including the branch to merge with, and...
 BranchMonitoringConfiguration getBranchMonitoringConfiguration()
          Deprecated. Returns plan's branches monitor current settings, like if it is enabled, what is the branch matching regexp and etc...
 BranchSpecificConfiguration getBranchSpecificConfiguration()
          Deprecated. Returns any configuration that is specific to a branch plan, and not so relevant for a normal plan.
 java.util.List<java.lang.String> getBuildChangedEmailList()
          Deprecated. Who wants to know when the build changes? A list of individual email addresses.
 java.lang.String getBuildChangedEmails()
          Deprecated. Who wants to know when the build changes? One or more email addresses (comma separated list)
 BuildDefinition getBuildDefinition()
          Deprecated. Returns the BuildDefinition that backs this Plan
 BuildDefinitionForBuild getBuildDefinitionXml()
          Deprecated.  
 java.lang.String getBuildKey()
          Deprecated. This objects specific portion of the key.
 java.util.Collection getBuildLog()
          Deprecated. Provide the latest build details.
 BuildLogger getBuildLogger()
          Deprecated. Returns the helper object to deal with logging
 java.lang.String getBuildName()
          Deprecated.  
 BuildResultsSummaryManager getBuildResultsSummaryManager()
          Deprecated.  
 java.util.List<BuildResultsSummary> getBuildResultSummaries()
          Deprecated. Obtains the builds total collection of BuildResultsSummary objects (most recent first), one for each build.
 BuildStrategy getBuildStrategy()
          Deprecated. Returns to BuildStrategy that the user actually selects
 java.util.Map getConfigObjects()
          Deprecated. Returns a map of objects generated by the plugins.
 BuildStrategy getCurrentBuildStrategy()
          Deprecated.  
 java.lang.String getCurrentStatus()
          Deprecated. Returns the string representation the current status of a build.
 java.util.Map<java.lang.String,java.lang.String> getCustomConfiguration()
          Deprecated. A map consisting of String key and String value pairs.
 BuildDefinition getDefaultBuildDefinition()
          Deprecated.  
 java.lang.String getDescription()
          Deprecated.  
 java.util.List<RepositoryDefinition> getEffectiveRepositoryDefinitions()
          Deprecated. Return list of repositories available to the chain.
 RequirementSet getEffectiveRequirementSet()
          Deprecated. Return effective value of RequirementSet, that is value that is considered when checking which agents and elastic images can build this Buildable.
 java.util.List<VariableDefinition> getEffectiveVariables()
          Deprecated. Return effective list of VariableDefinitions bind to this Plan.
 java.util.List getFieldValueItems()
          Deprecated.  
 int getFirstBuildNumber()
          Deprecated. What the number of the first build we have? It may not be 1 as some may have been removed!
 BuildResultsSummary getFirstBuildSummary()
          Deprecated.  
 long getId()
          Deprecated.  
 int getJobCount()
          Deprecated. Note: Does not include Jobs that are marked for deletion.
 java.lang.String getKey()
          Deprecated. Returns key of the project.
 java.util.List<Labelling> getLabellings()
          Deprecated. Used only for Hibernate mapping purposes.
 java.util.List<java.lang.String> getLabelNames()
          Deprecated. Returns all the names of related labels with a namesapce of :label
 int getLastBuildNumber()
          Deprecated. What was the number of the lastest build (may be being built)
 java.util.Date getLastBuildStartTime()
          Deprecated. When was the last time this build was built?
 PlanResultKey getLastResultKey()
          Deprecated. Get the latest result key including active (not finished) results
 BuildResultsSummary getLatestBuildSummary()
          Deprecated. Get the summary from the latest build
 ResultsSummary getLatestResultsSummary()
          Deprecated. Get the latest finished result
 Chain getMaster()
          Deprecated. Return the master plan if one exists.
 java.lang.String getName()
          Deprecated. Obtain the build's name
 int getNextBuildNumber()
          Deprecated. The next build number represents the number of the next build result that's to be executed
 BuildResults getNextBuildResults(int buildNumber)
          Deprecated.  
 NotificationSet getNotificationSet()
          Deprecated. Get notifications defined for this plan.
 long getNumberOfBuildSummaries()
          Deprecated.  
 int getNumberOfConcurrentlyRunningBuilds()
          Deprecated.  
 Plan getPlan()
          Deprecated.  
 PlanKey getPlanKey()
          Deprecated. Get the PlanKey identifier for this Plan
 java.util.List<Plan> getPlans()
          Deprecated. Returns all Plan associated with the Project.
 PlanType getPlanType()
          Deprecated.  
 BuildResults getPreviousBuildResults(int buildNumber)
          Deprecated.  
 Project getProject()
          Deprecated. Returns the parent Project
 java.util.List<Labelling> getRelatedLabellings()
          Deprecated. Returns labellings that's application for the plan level
 Repository getRepository()
          Deprecated. Obtain the build's Repository.
 java.lang.Long getRepositoryIdDefiningWorkingDir()
          Deprecated.  
 RequirementSet getRequirementSet()
          Deprecated.  
 java.util.List<ChainStage> getStages()
          Deprecated. Get Stages of the chain.
 java.util.List<TaskDefinition> getTaskDefinitions()
          Deprecated. All tasks defined for this build.
 java.util.List<TestClass> getTestClasses()
          Deprecated.  
 java.util.List<TopLevelPlan> getTopLevelPlans()
          Deprecated. This methods returns all TopLevelPlans, including the ones marked for deletion Use this method only if all you need is present in TopLevelPlan interface, otherwise consider using getAllChains.
 java.lang.String getType()
          Deprecated. Returns the string representation of the type.
 java.util.List<VariableDefinition> getVariables()
          Deprecated. Return list of VariableDefinitions bind to this Plan
 java.lang.String getXmlData()
          Deprecated.  
 boolean hasBuildResults()
          Deprecated. Has the build got any build results to display?
 int hashCode()
          Deprecated. IntelliJ generated hash
 boolean hasMaster()
          Deprecated.  
 boolean hasTests()
          Deprecated. Do any of TaskDefinition being used in the plan implement TaskTestResultsSupport
 boolean isActive()
          Deprecated. Is the plan queued or building?
 boolean isBusy()
          Deprecated. Is the Plan "busy".
 java.lang.Boolean isCleanWorkingDirectory()
          Deprecated. Should the working directory be cleaned after build.
 boolean isExecuting()
          Deprecated. Is the build currently being executed?
 boolean isMarkedForDeletion()
          Deprecated. Is the plan set to be deleted in the future
 boolean isMarkedForEditBuild()
          Deprecated.  
 boolean isMarkedForManualBuild()
          Deprecated. Has a manual build been requested for this build?
 boolean isMerged()
          Deprecated.  
 boolean isSuspendedFromBuilding()
          Deprecated. Checks if the build has been enabled / disabled.
 boolean isValidValue(java.lang.Object validValue)
          Deprecated. Whether or not a given object is a valid value for this BuildDefinition.
 void markAsNeedingBuilding(ReasonForBuild reasonForBuild)
          Deprecated.  
 void removeBuildResultSummary(int buildNumber)
          Deprecated.  
 void removeStage(ChainStage chainStage)
          Deprecated.  
 void save()
          Deprecated.  
 void setBranchIntegrationConfiguration(BranchIntegrationConfiguration branchIntegrationConfiguration)
          Deprecated.  
 void setBranchMonitoringConfiguration(BranchMonitoringConfiguration branchMonitoringConfiguration)
          Deprecated.  
 void setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration)
          Deprecated.  
 void setBuildChangedEmails(java.lang.String emailAddress)
          Deprecated. Define who is notified of build results by email
 void setBuildDefinition(BuildDefinitionForBuild buildDefinition)
          Deprecated.  
 void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
          Deprecated.  
 void setBuildKey(java.lang.String buildKey)
          Deprecated. Define the build's unique key (uppercase alphanumeric)
 void setBuildName(java.lang.String buildName)
          Deprecated.  
 void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
          Deprecated.  
 void setBuildResultSummaries(java.util.List buildResultSummaries)
          Deprecated. Legacy left over method (this is the extreme version of build result summaries)
 void setBuildStrategy(BuildStrategy buildStrategy)
          Deprecated. Set the strategy to override the default build strategy.
 void setCleanWorkingDirectory(boolean cleanWorkingDirectory)
          Deprecated. Set the working directory be cleaned or not cleaned after build
 void setConfigObjects(java.util.Map configObjects)
          Deprecated.  
 void setCustomConfiguration(java.util.Map<java.lang.String,java.lang.String> configMap)
          Deprecated. A map of String key and String value pairs, representing custom
 void setDescription(java.lang.String description)
          Deprecated.  
 void setFieldValueItems(java.util.List fieldValueItems)
          Deprecated.  
 void setFirstBuildNumber(int firstBuildNumber)
          Deprecated.  
 void setId(long id)
          Deprecated.  
 void setInBuildQueue(boolean isBuilding)
          Deprecated. Set the is-building flag.
 void setKey(java.lang.String key)
          Deprecated. Sets the key for the project.
 void setLabellings(java.util.List labellings)
          Deprecated.  
 void setLastBuildNumber(int lastBuildNumber)
          Deprecated.  
 void setLastBuildStartTime(java.util.Date lastBuildTime)
          Deprecated. Set the time of the last build
 void setMarkedForDeletion(boolean markedForDeletion)
          Deprecated.  
 void setMaster(Plan master)
          Deprecated. Set which plan is the master of this plan.
 void setMerged(boolean value)
          Deprecated. Set whether or not this BuildDefinition has been merged from multiple sources.
 void setName(java.lang.String name)
          Deprecated.  
 void setNextBuildNumber(int nextBuildNumber)
          Deprecated.  
 void setNotificationSet(NotificationSet notificationSet)
          Deprecated.  
 void setPlan(Plan build)
          Deprecated.  
 void setPlanKey(PlanKey planKey)
          Deprecated.  
 void setProject(Project project)
          Deprecated.  
 void setRepositoryIdDefiningWorkingDir(long repositoryDefininingWorkingDir)
          Deprecated.  
 void setRequirementSet(RequirementSet requirementSet)
          Deprecated.  
 void setSuspendedFromBuilding(boolean suspendFromBuilding)
          Deprecated. Sets the build to suspend temporarily
 void setTaskDefinitions(java.util.List<TaskDefinition> taskConfigs)
          Deprecated.  
 void setXmlData(java.lang.String xmlData)
          Deprecated.  
 void unmarkBuild()
          Deprecated.  
 ErrorCollection validateBuild()
          Deprecated. 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
Deprecated. 
Constructor Detail

BuildObjectForTests

public BuildObjectForTests()
Deprecated. 
Simple package constructor for testing


BuildObjectForTests

public BuildObjectForTests(Repository repository,
                           java.lang.String name)
Deprecated. 
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)
Deprecated. 
Create a build

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

getTaskDefinitions

@NotNull
public java.util.List<TaskDefinition> getTaskDefinitions()
Deprecated. 
Description copied from interface: BuildDefinition
All tasks defined for this build. Contains both regular tasks and finalising tasks.

Specified by:
getTaskDefinitions in interface BuildDefinition
Specified by:
getTaskDefinitions in interface PartialBuildDefinition
Returns:
A List of TaskDefinitions

setTaskDefinitions

public void setTaskDefinitions(@NotNull
                               java.util.List<TaskDefinition> taskConfigs)
Deprecated. 
Specified by:
setTaskDefinitions in interface BuildDefinition

getBuildLogger

@NotNull
public BuildLogger getBuildLogger()
Deprecated. 
Description copied from interface: ImmutablePlan
Returns the helper object to deal with logging

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

getCurrentStatus

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

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

getBuildName

@NotNull
public java.lang.String getBuildName()
Deprecated. 
Specified by:
getBuildName in interface PlanIdentifier
Returns:
The plan specific portion of the name (without the project and/or parent's names). You probably want to use PlanIdentifier.getName()

setBuildName

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

getBuildDefinitionXml

public BuildDefinitionForBuild getBuildDefinitionXml()
Deprecated. 
Specified by:
getBuildDefinitionXml in interface ImmutablePlan

setBuildDefinitionXml

public void setBuildDefinitionXml(BuildDefinitionForBuild buildDefinitionXml)
Deprecated. 
Specified by:
setBuildDefinitionXml in interface Plan

setFieldValueItems

public void setFieldValueItems(java.util.List fieldValueItems)
Deprecated. 

setNextBuildNumber

public void setNextBuildNumber(int nextBuildNumber)
Deprecated. 
Specified by:
setNextBuildNumber in interface Plan

setLastBuildNumber

public void setLastBuildNumber(int lastBuildNumber)
Deprecated. 
Specified by:
setLastBuildNumber in interface Plan

setFirstBuildNumber

public void setFirstBuildNumber(int firstBuildNumber)
Deprecated. 
Specified by:
setFirstBuildNumber in interface Plan

getNextBuildNumber

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

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

setKey

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

Specified by:
setKey in interface Plan
Specified by:
setKey in interface Project

setPlanKey

public void setPlanKey(@NotNull
                       PlanKey planKey)
Deprecated. 
Specified by:
setPlanKey in interface Plan

getPlanKey

@NotNull
public PlanKey getPlanKey()
Deprecated. 
Description copied from interface: PlanIdentifier
Get the PlanKey identifier for this Plan

Specified by:
getPlanKey in interface PlanIdentifier
Returns:
planKey

getBuildKey

@NotNull
public java.lang.String getBuildKey()
Deprecated. 
Description copied from interface: PlanIdentifier
This objects specific portion of the key. You probably want to use PlanIdentifier.getPlanKey().

Specified by:
getBuildKey in interface PlanIdentifier
Returns:
This objects specific portion of the key

setProject

public void setProject(Project project)
Deprecated. 
Specified by:
setProject in interface Plan

setPlan

public void setPlan(Plan build)
Deprecated. 
Specified by:
setPlan in interface BuildDefinitionForBuild

setBuildDefinition

public void setBuildDefinition(BuildDefinitionForBuild buildDefinition)
Deprecated. 

getXmlData

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

setXmlData

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

getBuildDefinition

@NotNull
public BuildDefinition getBuildDefinition()
Deprecated. 
Description copied from interface: ImmutablePlan
Returns the BuildDefinition that backs this Plan

Specified by:
getBuildDefinition in interface ImmutablePlan
Returns:
BuildDefinition object.

getId

public long getId()
Deprecated. 
Specified by:
getId in interface BambooIdProvider
Specified by:
getId in interface PlanIdentifier
Returns:
Database id of the plan

setId

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

getProject

@NotNull
public Project getProject()
Deprecated. 
Description copied from interface: ImmutablePlan
Returns the parent Project

Specified by:
getProject in interface ImmutablePlan
Specified by:
getProject in interface PlanIdentifier
Returns:
Project. Never null

getPlan

public Plan getPlan()
Deprecated. 
Specified by:
getPlan in interface BuildDefinitionForBuild

getPlanType

@NotNull
public PlanType getPlanType()
Deprecated. 
Specified by:
getPlanType in interface PlanIdentifier
Returns:
the type of this plan

getCurrentBuildStrategy

public BuildStrategy getCurrentBuildStrategy()
Deprecated. 

getBuildStrategy

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

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

getBranchMonitoringConfiguration

@NotNull
public BranchMonitoringConfiguration getBranchMonitoringConfiguration()
Deprecated. 
Description copied from interface: BuildDefinition
Returns plan's branches monitor current settings, like if it is enabled, what is the branch matching regexp and etc...

Specified by:
getBranchMonitoringConfiguration in interface BuildDefinition
Specified by:
getBranchMonitoringConfiguration in interface PartialBuildDefinition
Returns:
current BranchMonitoringConfiguration

getBranchIntegrationConfiguration

@NotNull
public BranchIntegrationConfiguration getBranchIntegrationConfiguration()
Deprecated. 
Description copied from interface: BuildDefinition
Returns ChainBranch integration strategy settings, including the branch to merge with, and... //todo

Specified by:
getBranchIntegrationConfiguration in interface BuildDefinition
Specified by:
getBranchIntegrationConfiguration in interface PartialBuildDefinition
Returns:
current BranchIntegrationConfiguration

save

public void save()
Deprecated. 

setBuildStrategy

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

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

setBranchMonitoringConfiguration

public void setBranchMonitoringConfiguration(BranchMonitoringConfiguration branchMonitoringConfiguration)
Deprecated. 
Specified by:
setBranchMonitoringConfiguration in interface BuildDefinition

setBranchIntegrationConfiguration

public void setBranchIntegrationConfiguration(BranchIntegrationConfiguration branchIntegrationConfiguration)
Deprecated. 
Specified by:
setBranchIntegrationConfiguration in interface BuildDefinition

getRepository

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

Specified by:
getRepository in interface BuildPlanDefinition
Returns:
The Repository

getName

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

Specified by:
getName in interface PlanIdentifier
Specified by:
getName in interface ProjectIdentifier
Specified by:
getName in interface DescriptionProvider
Specified by:
getName in interface NameProvider
Returns:
The build's name

setName

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

getDescription

public java.lang.String getDescription()
Deprecated. 
Specified by:
getDescription in interface DescriptionProvider

setDescription

public void setDescription(java.lang.String description)
Deprecated. 
Specified by:
setDescription in interface Describable

getKey

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

Specified by:
getKey in interface ImmutablePlan
Specified by:
getKey in interface ProjectIdentifier
Returns:
key of project. Must not be null.

getDefaultBuildDefinition

public BuildDefinition getDefaultBuildDefinition()
Deprecated. 

getPlans

@NotNull
public java.util.List<Plan> getPlans()
Deprecated. 
Description copied from interface: Project
Returns all Plan associated with the Project. Returns Collections.emptyList() if there are no Plans for the project.

Specified by:
getPlans in interface Project
Returns:
List of Plans. Collections.emptyList() if no plans.

getTopLevelPlans

@NotNull
public java.util.List<TopLevelPlan> getTopLevelPlans()
Deprecated. 
Description copied from interface: Project
This methods returns all TopLevelPlans, including the ones marked for deletion Use this method only if all you need is present in TopLevelPlan interface, otherwise consider using getAllChains.

Specified by:
getTopLevelPlans in interface Project
Returns:

getLabellings

@NotNull
public java.util.List<Labelling> getLabellings()
Deprecated. 
Description copied from interface: Plan
Used only for Hibernate mapping purposes. Deprecated for removal from the interface

Specified by:
getLabellings in interface Plan
Specified by:
getLabellings in interface Project
Returns:

getRelatedLabellings

@NotNull
public java.util.List<Labelling> getRelatedLabellings()
Deprecated. 
Description copied from interface: Plan
Returns labellings that's application for the plan level

Specified by:
getRelatedLabellings in interface Plan
Specified by:
getRelatedLabellings in interface Project
Returns:
Empty list if no labels

getLabelNames

@NotNull
public java.util.List<java.lang.String> getLabelNames()
Deprecated. 
Description copied from interface: ImmutablePlan
Returns all the names of related labels with a namesapce of :label

Specified by:
getLabelNames in interface ImmutablePlan
Returns:

setLabellings

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

setBuildKey

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

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

getBuildChangedEmails

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

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

setBuildChangedEmails

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

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

getBuildChangedEmailList

@NotNull
public java.util.List<java.lang.String> getBuildChangedEmailList()
Deprecated. 
Who wants to know when the build changes? A list of individual email addresses.

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

getLastBuildNumber

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

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

addBuildResultSummary

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

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

setBuildResultSummaries

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

Parameters:
buildResultSummaries -

getBuildResultSummaries

public java.util.List<BuildResultsSummary> getBuildResultSummaries()
Deprecated. 
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 Buildable
Returns:
The collection of build summary objects

setInBuildQueue

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

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

getNumberOfConcurrentlyRunningBuilds

public int getNumberOfConcurrentlyRunningBuilds()
Deprecated. 
Specified by:
getNumberOfConcurrentlyRunningBuilds in interface Buildable

isActive

public boolean isActive()
Deprecated. 
Description copied from interface: ImmutablePlan
Is the plan queued or building?

Specified by:
isActive in interface ImmutablePlan
Returns:

isExecuting

public boolean isExecuting()
Deprecated. 
Description copied from interface: ImmutablePlan
Is the build currently being executed?

Specified by:
isExecuting in interface ImmutablePlan
Returns:
true if build is being executed

getLastBuildStartTime

public java.util.Date getLastBuildStartTime()
Deprecated. 
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)
Deprecated. 
Set the time of the last build

Parameters:
lastBuildTime - the time

getRepositoryIdDefiningWorkingDir

@NotNull
public java.lang.Long getRepositoryIdDefiningWorkingDir()
Deprecated. 
Specified by:
getRepositoryIdDefiningWorkingDir in interface BuildDefinition
Specified by:
getRepositoryIdDefiningWorkingDir in interface PartialBuildDefinition

setRepositoryIdDefiningWorkingDir

public void setRepositoryIdDefiningWorkingDir(long repositoryDefininingWorkingDir)
Deprecated. 
Specified by:
setRepositoryIdDefiningWorkingDir in interface BuildDefinition

hasBuildResults

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

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

getCustomConfiguration

@NotNull
public java.util.Map<java.lang.String,java.lang.String> getCustomConfiguration()
Deprecated. 
Description copied from interface: BuildPlanDefinition
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 PartialBuildDefinition
Specified by:
getCustomConfiguration in interface BuildPlanDefinition
Returns:
a map consisting of String key and String value pairs. This is where fields which start with "custom" (eg. custom.test.id) go to

setCustomConfiguration

public void setCustomConfiguration(@NotNull
                                   java.util.Map<java.lang.String,java.lang.String> configMap)
Deprecated. 
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 BuildResultsSummary getLatestBuildSummary()
Deprecated. 
Get the summary from the latest build

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

getLatestResultsSummary

public ResultsSummary getLatestResultsSummary()
Deprecated. 
Description copied from interface: ImmutablePlan
Get the latest finished result

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

getFirstBuildSummary

public BuildResultsSummary getFirstBuildSummary()
Deprecated. 
Specified by:
getFirstBuildSummary in interface Buildable

getNumberOfBuildSummaries

public long getNumberOfBuildSummaries()
Deprecated. 

getBuildLog

public java.util.Collection getBuildLog()
Deprecated. 
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)
Deprecated. 
Add a new entry to the build log

Parameters:
entryDescription - The entry to add

addBuildLogEntry

public java.lang.String addBuildLogEntry(LogEntry logEntry)
Deprecated. 

isMarkedForManualBuild

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


isMarkedForEditBuild

public boolean isMarkedForEditBuild()
Deprecated. 

markAsNeedingBuilding

public void markAsNeedingBuilding(ReasonForBuild reasonForBuild)
Deprecated. 

unmarkBuild

public void unmarkBuild()
Deprecated. 

validateBuild

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

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

getFieldValueItems

public java.util.List getFieldValueItems()
Deprecated. 

getAverageBuildDuration

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

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

getPreviousBuildResults

@Nullable
public BuildResults getPreviousBuildResults(int buildNumber)
Deprecated. 
Specified by:
getPreviousBuildResults in interface Buildable

getNextBuildResults

@Nullable
public BuildResults getNextBuildResults(int buildNumber)
Deprecated. 
Specified by:
getNextBuildResults in interface Buildable

isMarkedForDeletion

public boolean isMarkedForDeletion()
Deprecated. 
Description copied from interface: ImmutablePlan
Is the plan set to be deleted in the future

Specified by:
isMarkedForDeletion in interface ImmutableDeletable
Specified by:
isMarkedForDeletion in interface ImmutablePlan
Returns:
Whether or not the Object has been marked for deletion

setMarkedForDeletion

public void setMarkedForDeletion(boolean markedForDeletion)
Deprecated. 
Specified by:
setMarkedForDeletion in interface Deletable

setSuspendedFromBuilding

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

Specified by:
setSuspendedFromBuilding in interface Plan

isSuspendedFromBuilding

public boolean isSuspendedFromBuilding()
Deprecated. 
Description copied from interface: PlanIdentifier
Checks if the build has been enabled / disabled.

Specified by:
isSuspendedFromBuilding in interface PlanIdentifier
Returns:
true if plan is disabled

clearBuildLog

public void clearBuildLog()
Deprecated. 

equals

public boolean equals(java.lang.Object o)
Deprecated. 
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()
Deprecated. 
IntelliJ generated hash

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

getBuildResultsSummaryManager

public BuildResultsSummaryManager getBuildResultsSummaryManager()
Deprecated. 

setBuildResultsSummaryManager

public void setBuildResultsSummaryManager(BuildResultsSummaryManager buildResultsSummaryManager)
Deprecated. 

getRequirementSet

@NotNull
public RequirementSet getRequirementSet()
Deprecated. 
Specified by:
getRequirementSet in interface Buildable

getEffectiveRequirementSet

@NotNull
public RequirementSet getEffectiveRequirementSet()
Deprecated. 
Description copied from interface: Buildable
Return effective value of RequirementSet, that is value that is considered when checking which agents and elastic images can build this Buildable.

Specified by:
getEffectiveRequirementSet in interface Buildable
Returns:
the same as Buildable.getRequirementSet() if ImmutablePlan.hasMaster() is false, getMaster().getRequirementSet() otherwise.

setRequirementSet

public void setRequirementSet(RequirementSet requirementSet)
Deprecated. 
Specified by:
setRequirementSet in interface Buildable

isBusy

public boolean isBusy()
Deprecated. 
Description copied from interface: ImmutablePlan
Is the Plan "busy". Busy is defined by the plan having a lock held on it. This is done during change detection, dependency listner and the like

Specified by:
isBusy in interface ImmutablePlan
Returns:
busy

removeBuildResultSummary

public void removeBuildResultSummary(int buildNumber)
Deprecated. 
Specified by:
removeBuildResultSummary in interface Buildable

getConfigObjects

@NotNull
public java.util.Map getConfigObjects()
Deprecated. 
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
Specified by:
getConfigObjects in interface PartialBuildDefinition
Returns:
A Map with a String as a key and an arbitrary objects as the value.

setConfigObjects

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

setMaster

public void setMaster(Plan master)
Deprecated. 
Description copied from interface: Plan
Set which plan is the master of this plan. The master is the plan which this one is derived from. Configuration is pulled from the master if one exists.

Specified by:
setMaster in interface Plan

getMaster

public Chain getMaster()
Deprecated. 
Description copied from interface: ImmutablePlan
Return the master plan if one exists. The master is the plan which this one is derived from. Configuration is pulled from the master if one exists.

Specified by:
getMaster in interface Chain
Specified by:
getMaster in interface ImmutablePlan
Returns:
the master Plan if one exists.

hasMaster

public boolean hasMaster()
Deprecated. 
Specified by:
hasMaster in interface ImmutablePlan
Returns:
true if plan has a master plan

getTestClasses

@NotNull
public java.util.List<TestClass> getTestClasses()
Deprecated. 

getType

@NotNull
public java.lang.String getType()
Deprecated. 
Description copied from interface: ImmutablePlan
Returns the string representation of the type. See PlanType and used in Freemarker.

Specified by:
getType in interface ImmutablePlan
Returns:
a string representation of the implementation type. Used for freemarker.

hasTests

public boolean hasTests()
Deprecated. 
Description copied from interface: ImmutablePlan
Do any of TaskDefinition being used in the plan implement TaskTestResultsSupport

Specified by:
hasTests in interface ImmutablePlan

isCleanWorkingDirectory

@NotNull
public java.lang.Boolean isCleanWorkingDirectory()
Deprecated. 
Description copied from interface: BuildDefinition
Should the working directory be cleaned after build.

Specified by:
isCleanWorkingDirectory in interface BuildDefinition
Specified by:
isCleanWorkingDirectory in interface PartialBuildDefinition
Returns:
cleanWorkingDirectory

setCleanWorkingDirectory

public void setCleanWorkingDirectory(boolean cleanWorkingDirectory)
Deprecated. 
Description copied from interface: BuildDefinition
Set the working directory be cleaned or not cleaned after build

Specified by:
setCleanWorkingDirectory in interface BuildDefinition

setNotificationSet

public void setNotificationSet(NotificationSet notificationSet)
Deprecated. 
Specified by:
setNotificationSet in interface Chain

addNewStage

@NotNull
public ChainStage addNewStage(@NotNull
                                      java.lang.String name,
                                      @NotNull
                                      java.lang.String description,
                                      boolean manual)
Deprecated. 
Description copied from interface: Chain
Adds a new stage and returns the stage

Specified by:
addNewStage in interface Chain
Returns:

addStage

public void addStage(@NotNull
                     ChainStage chainStage)
Deprecated. 
Specified by:
addStage in interface Chain

removeStage

public void removeStage(@NotNull
                        ChainStage chainStage)
Deprecated. 
Specified by:
removeStage in interface Chain

getNotificationSet

public NotificationSet getNotificationSet()
Deprecated. 
Description copied from interface: ImmutableChain
Get notifications defined for this plan.

Specified by:
getNotificationSet in interface ImmutableChain
Returns:
NotificationSet containing notifications for this plan.

getStages

@NotNull
public java.util.List<ChainStage> getStages()
Deprecated. 
Description copied from interface: ImmutableChain
Get Stages of the chain.

Note that this excludes ChainStages that have been marked for deletion

Specified by:
getStages in interface Chain
Specified by:
getStages in interface ImmutableChain
Returns:
stages

getAllStages

@NotNull
public java.util.List<ChainStage> getAllStages()
Deprecated. 
Description copied from interface: ImmutableChain
Get Stages of the Chain

Note that this includes ChainStages that have been marked for deletion

Specified by:
getAllStages in interface Chain
Specified by:
getAllStages in interface ImmutableChain
Returns:
stages

containsStage

public boolean containsStage(@Nullable
                             java.lang.String stageName)
Deprecated. 
Description copied from interface: ImmutableChain
Checks whether or not a stage exists in this chain by stage name.

Specified by:
containsStage in interface ImmutableChain
Parameters:
stageName - to check for
Returns:
true if a stage with the given name exists, otherwise false

getJobCount

public int getJobCount()
Deprecated. 
Description copied from interface: ImmutableChain
Note: Does not include Jobs that are marked for deletion.

Specified by:
getJobCount in interface ImmutableChain
Returns:
how many Jobs are currently contained within this chain

getBranchSpecificConfiguration

@NotNull
public BranchSpecificConfiguration getBranchSpecificConfiguration()
Deprecated. 
Description copied from interface: BuildDefinition
Returns any configuration that is specific to a branch plan, and not so relevant for a normal plan.

Specified by:
getBranchSpecificConfiguration in interface BuildDefinition
Specified by:
getBranchSpecificConfiguration in interface PartialBuildDefinition
Returns:

setBranchSpecificConfiguration

public void setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration)
Deprecated. 
Specified by:
setBranchSpecificConfiguration in interface BuildDefinition

getAllJobs

@NotNull
public java.util.List<Job> getAllJobs()
Deprecated. 
Description copied from interface: ImmutableChain
Note: Does not include Jobs that are marked for deletion.

Specified by:
getAllJobs in interface Chain
Specified by:
getAllJobs in interface ImmutableChain
Returns:
a list of all Jobs that are currently contained within this chain - no order guaranteed.

getEffectiveRepositoryDefinitions

@NotNull
public java.util.List<RepositoryDefinition> getEffectiveRepositoryDefinitions()
Deprecated. 
Description copied from interface: ImmutableChain
Return list of repositories available to the chain. In case of non-master object it will return list of master's repository definitions with default repository overriden by a private copy of default repository.

Specified by:
getEffectiveRepositoryDefinitions in interface ImmutableChain
Returns:
ordered List of repositories available to this plan

getVariables

@NotNull
public java.util.List<VariableDefinition> getVariables()
Deprecated. 
Description copied from interface: ImmutablePlan
Return list of VariableDefinitions bind to this Plan

Specified by:
getVariables in interface ImmutablePlan
Returns:
non-null list of VariableDefinition

getEffectiveVariables

@NotNull
public java.util.List<VariableDefinition> getEffectiveVariables()
Deprecated. 
Description copied from interface: ImmutablePlan
Return effective list of VariableDefinitions bind to this Plan. For master Plans this will return the same result as ImmutablePlan.getVariables(). Non-master plans will produce the sum of: - all master's variables which keys do not appear in result of ImmutablePlan.getVariables() - result of ImmutablePlan.getVariables()

Specified by:
getEffectiveVariables in interface ImmutablePlan
Returns:
non-null list of VariableDefinition

getLastResultKey

public PlanResultKey getLastResultKey()
Deprecated. 
Description copied from interface: ImmutableChain
Get the latest result key including active (not finished) results

Specified by:
getLastResultKey in interface ImmutableChain
Returns:
The key of the last build. Returns null if there are no build results for this plan

getFirstBuildNumber

public int getFirstBuildNumber()
Deprecated. 
Description copied from interface: ImmutablePlan
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 ImmutablePlan
Returns:
The number of the first build

isMerged

public boolean isMerged()
Deprecated. 
Specified by:
isMerged in interface BuildDefinitionForBuild
Specified by:
isMerged in interface PartialBuildDefinition
Returns:
true if the configuration has been merged from multiple sources. Such configurations cannot be saved.

setMerged

public void setMerged(boolean value)
Deprecated. 
Description copied from interface: BuildDefinition
Set whether or not this BuildDefinition has been merged from multiple sources. Merged definitions will not be persisted.

Specified by:
setMerged in interface BuildDefinition
Parameters:
value - true if merged

isValidValue

public boolean isValidValue(@Nullable
                            java.lang.Object validValue)
Deprecated. 
Description copied from interface: BuildDefinition
Whether or not a given object is a valid value for this BuildDefinition. For example, PartialBuildDefintions accept nulls.

Specified by:
isValidValue in interface BuildDefinition
Returns:


Copyright © 2012 Atlassian. All Rights Reserved.