|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.bamboo.build.LegacyBuildObject
com.atlassian.bamboo.upgrade.tasks.UpgradeTask102BuildObject
public class UpgradeTask102BuildObject
Information about a build under Continuous Integration.
Field Summary | |
---|---|
static int |
MAX_NUMBER_LOG_ENTRIES
|
Fields inherited from interface com.atlassian.bamboo.build.Build |
---|
STATUS_CURRENTLY_BUILDING, STATUS_FAIL, STATUS_NO_BUILDS, STATUS_SUCCESS |
Constructor Summary | |
---|---|
UpgradeTask102BuildObject()
Simple package constructor for testing |
|
UpgradeTask102BuildObject(Repository repository,
String name,
BuilderManager builderManager)
Create a build |
|
UpgradeTask102BuildObject(Repository repository,
String name,
String emailAddress,
BuilderManager builderManager)
Create a build |
Method Summary | |
---|---|
void |
addArtifact(Artifact artifact)
Add a new artifact to the existing build artifacts |
void |
addBuildDependency(String buildKey)
|
String |
addBuildLogEntry(LogEntry logEntry)
Add a new build log entry. |
String |
addBuildLogEntry(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()
Reset the build log, ready for the next build |
boolean |
equals(Object o)
We're only using the build name to compare builds |
Map |
getArtifacts()
Get the custom Artifact s. |
long |
getAverageBuildDuration()
Returns an average duration of the recent builds |
String |
getAverageBuildDurationAsString()
|
Build |
getBuild()
|
List |
getBuildChangedEmailList()
Who wants to know when the build changes? A list of individual email addresses. |
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 |
List |
getBuildDependencies()
The names of the builds that need to be build when this build is built? |
Set |
getBuildDependenciesSet()
|
Builder |
getBuilder()
Obtain the build's Builder . |
List |
getBuildLog()
Provide the latest build details. |
List |
getBuildResultSummaries()
Obtains the builds total collection of BuildResultsSummary objects (most recent first), one for each
build. |
List |
getBuilds()
Returns all Build associated with the Project . |
BuildStrategy |
getBuildStrategy()
Returns to BuildStrategy that the user actually selects |
BuildStrategy |
getCurrentBuildStrategy()
What is the builds current BuildStrategy ?
If the build has never been built, it returns a InitialBootstapBuildStrategy
otherwise it returns the build specific BuildStrategy. |
BuildDefinition |
getDefaultBuildDefinition()
|
EmailStrategy |
getEmailStrategy()
What email strategy does this build have? |
String |
getExportStatusStyle()
|
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()
|
String |
getKey()
Obtain the build's unique key (uppercase alphanumeric). |
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()
Obtain the build's name |
BuildResults |
getNextBuildResults(int buildNumber)
|
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 . |
File |
getSourceCodeDirectory()
Returns a file representing the source directory from the Repository |
XmppMessageSender |
getXmppMessageSender()
The build's option IM message server configuration |
boolean |
hasArtifacts()
|
boolean |
hasBuildDependency(String buildKey)
|
boolean |
hasBuildResults()
Has the build got any build results to display? |
int |
hashCode()
IntelliJ generated hash |
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 a manual build been requested for this 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 |
removeBuildDependency(String buildKey)
|
void |
removeBuildResultSummary(long buildNumber)
Remove the given build summary from the build |
void |
setArtifacts(Map artifacts)
Replace the build's artifacts with these ones. |
void |
setBuild(Build build)
|
void |
setBuildChangedEmails(String emailAddress)
Define who is notified of build results by email |
void |
setBuildDependencies(Set buildDependencies)
Set of String represneting the build keys |
void |
setBuilder(Builder builder)
Set the build's builder. |
void |
setBuilderManager(BuilderManager builderManager)
|
void |
setBuildKey(String buildKey)
Define the build's unique key (uppercase alphanumeric) |
void |
setBuildResultSummaries(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 |
setEmailStrategy(EmailStrategy emailStrategy)
Define when build build email need to be sent |
void |
setExportStatusStyle(String exportStatusStyle)
|
void |
setFieldValueItems(List fieldValueItems)
|
void |
setId(long id)
|
void |
setInBuildQueue(boolean isBuilding)
Set the is-building flag. |
void |
setLastBuildStartTime(Date lastBuildTime)
Set the time of the last build |
void |
setName(String name)
|
void |
setPollingPeriod(int pollingPeriod)
How long should we wait between checking the build to see if it need building? |
void |
setRepository(Repository repository)
Set the build's source code repository. |
void |
setSuspendedFromBuilding(boolean suspendFromBuilding)
Sets the build to suspend temporarily |
void |
setWorkingDirectory(String buildDirectory)
|
void |
setXmppMessageSender(XmppMessageSender xmppMessageSender)
The build's option IM message server configuration |
void |
unmarkForManualBuild()
|
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 |
Methods inherited from interface com.atlassian.bamboo.project.Project |
---|
getCurrentStatus, getLabellings, setKey, setLabellings |
Methods inherited from interface com.atlassian.bamboo.build.Build |
---|
getBuildDefinitionXml, getBuildKey, getBuildName, getChildBuilds, getCurrentStatus, getLabellings, getNextBuildNumber, getParentBuilds, retrieveNextBuildNumber, setBuildDefinitionXml, setBuildName, setChildBuilds, setFirstBuildNumber, setKey, setLabellings, setLastBuildNumber, setNextBuildNumber, setParentBuilds, setProject, unmarkBuild |
Methods inherited from interface com.atlassian.bamboo.build.BuildDefinition |
---|
getCustomConfiguration, setCustomConfiguration |
Methods inherited from interface com.atlassian.bamboo.build.BuildDefinitionXml |
---|
getXmlData, setXmlData |
Field Detail |
---|
public static final int MAX_NUMBER_LOG_ENTRIES
Constructor Detail |
---|
public UpgradeTask102BuildObject()
public UpgradeTask102BuildObject(Repository repository, String name, BuilderManager builderManager)
repository
- The Repository
containing the buildname
- The name of the buildbuilderManager
- public UpgradeTask102BuildObject(Repository repository, String name, String emailAddress, BuilderManager builderManager)
repository
- The Repository
containing the buildname
- The name of the buildemailAddress
- The build email notification addressbuilderManager
- Method Detail |
---|
public void setFieldValueItems(List fieldValueItems)
setFieldValueItems
in class LegacyBuildObject
public void setBuild(Build build)
setBuild
in interface BuildDefinitionForBuild
setBuild
in class LegacyBuildObject
public BuildDefinition getBuildDefinition()
Build
BuildDefinition
that backs this buildd
getBuildDefinition
in interface Build
getBuildDefinition
in class LegacyBuildObject
BuildDefinition
object. Never null.public long getId()
getId
in interface BambooObject
getId
in class LegacyBuildObject
public void setId(long id)
setId
in interface BambooObject
setId
in class LegacyBuildObject
public Project getProject()
Build
Project
getProject
in interface Build
getProject
in class LegacyBuildObject
Project
. Never nullpublic Build getBuild()
getBuild
in interface BuildDefinitionForBuild
getBuild
in class LegacyBuildObject
public BuildStrategy getCurrentBuildStrategy()
BuildStrategy
?
If the build has never been built, it returns a InitialBootstapBuildStrategy
otherwise it returns the build specific BuildStrategy.
getCurrentBuildStrategy
in interface Build
getCurrentBuildStrategy
in class LegacyBuildObject
public BuildStrategy getBuildStrategy()
BuildDefinition
BuildStrategy
that the user actually selects
getBuildStrategy
in interface BuildDefinition
getBuildStrategy
in class LegacyBuildObject
BuildStrategy
public void setBuildStrategy(BuildStrategy buildStrategy)
setBuildStrategy
in interface BuildDefinition
setBuildStrategy
in class LegacyBuildObject
buildStrategy
- The next build strategy to use.public Repository getRepository()
Repository
.
getRepository
in interface BuildDefinition
getRepository
in class LegacyBuildObject
public void setRepository(Repository repository)
setRepository
in interface BuildDefinition
setRepository
in class LegacyBuildObject
repository
- The source repoisitorypublic int getPollingPeriod()
getPollingPeriod
in interface BuildDefinition
getPollingPeriod
in class LegacyBuildObject
public void setPollingPeriod(int pollingPeriod)
setPollingPeriod
in interface BuildDefinition
setPollingPeriod
in class LegacyBuildObject
pollingPeriod
- The time in secondspublic Builder getBuilder()
Builder
.
getBuilder
in interface BuildDefinition
getBuilder
in class LegacyBuildObject
public void setBuilder(Builder builder)
setBuilder
in interface BuildDefinition
setBuilder
in class LegacyBuildObject
builder
- the builderpublic String getName()
getName
in interface Build
getName
in interface Project
getName
in class LegacyBuildObject
public void setName(String name)
setName
in interface Project
setName
in class LegacyBuildObject
public String getKey()
Build
getKey
in interface Build
getKey
in interface Project
getKey
in class LegacyBuildObject
public BuildDefinition getDefaultBuildDefinition()
getDefaultBuildDefinition
in class LegacyBuildObject
public List getBuilds()
Project
Build
associated with the Project
. Returns Collections.EMPTY_LIST`
if
there are no Build
s for the project.
getBuilds
in interface Project
getBuilds
in class LegacyBuildObject
List
of Build
s. Collections.EMPTY_LIST`
if no builds.public void setBuildKey(String buildKey)
Build
setBuildKey
in interface Build
setBuildKey
in class LegacyBuildObject
buildKey
- The value of the keypublic String getBuildChangedEmails()
getBuildChangedEmails
in interface BuildDefinition
getBuildChangedEmails
in class LegacyBuildObject
public void setBuildChangedEmails(String emailAddress)
setBuildChangedEmails
in interface BuildDefinition
setBuildChangedEmails
in class LegacyBuildObject
emailAddress
- The build email addresspublic List getBuildChangedEmailList()
getBuildChangedEmailList
in interface BuildDefinition
getBuildChangedEmailList
in class LegacyBuildObject
public int getLastBuildNumber()
getLastBuildNumber
in interface Build
getLastBuildNumber
in class LegacyBuildObject
public int getFirstBuildNumber()
getFirstBuildNumber
in interface Build
getFirstBuildNumber
in class LegacyBuildObject
public void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
addBuildResultSummary
in interface Build
addBuildResultSummary
in class LegacyBuildObject
buildResultsSummary
- The build summarypublic void removeBuildResultSummary(long buildNumber)
Build
removeBuildResultSummary
in interface Build
removeBuildResultSummary
in class LegacyBuildObject
buildNumber
- the number of the build to deletepublic void setBuildResultSummaries(List buildResultSummaries)
LegacyBuildObject
setBuildResultSummaries
in class LegacyBuildObject
public List getBuildResultSummaries()
BuildResultsSummary
objects (most recent first), one for each
build.
getBuildResultSummaries
in interface Build
getBuildResultSummaries
in class LegacyBuildObject
public void setInBuildQueue(boolean isBuilding)
setInBuildQueue
in interface Build
setInBuildQueue
in class LegacyBuildObject
isBuilding
- Is the build currently in the build pipeline?public boolean isInBuildQueue()
isInBuildQueue
in interface Build
isInBuildQueue
in class LegacyBuildObject
public Date getLastBuildStartTime()
getLastBuildStartTime
in interface Build
getLastBuildStartTime
in class LegacyBuildObject
public void setLastBuildStartTime(Date lastBuildTime)
setLastBuildStartTime
in interface Build
setLastBuildStartTime
in class LegacyBuildObject
lastBuildTime
- the timepublic void setWorkingDirectory(String buildDirectory)
setWorkingDirectory
in interface BuildDefinition
setWorkingDirectory
in class LegacyBuildObject
public boolean hasBuildResults()
hasBuildResults
in interface Build
hasBuildResults
in class LegacyBuildObject
public EmailStrategy getEmailStrategy()
getEmailStrategy
in interface BuildDefinition
getEmailStrategy
in class LegacyBuildObject
public void setEmailStrategy(EmailStrategy emailStrategy)
setEmailStrategy
in interface BuildDefinition
setEmailStrategy
in class LegacyBuildObject
emailStrategy
- the strategy to use from now onpublic void setBuildDependencies(Set buildDependencies)
BuildDefinition
String
represneting the build keys
setBuildDependencies
in interface BuildDefinition
setBuildDependencies
in class LegacyBuildObject
public Set getBuildDependenciesSet()
getBuildDependenciesSet
in class LegacyBuildObject
public void addBuildDependency(String buildKey)
addBuildDependency
in interface BuildDefinition
addBuildDependency
in class LegacyBuildObject
public void removeBuildDependency(String buildKey)
removeBuildDependency
in interface BuildDefinition
removeBuildDependency
in class LegacyBuildObject
public boolean hasBuildDependency(String buildKey)
hasBuildDependency
in interface BuildDefinition
hasBuildDependency
in class LegacyBuildObject
public List getBuildDependencies()
getBuildDependencies
in interface BuildDefinition
getBuildDependencies
in class LegacyBuildObject
public boolean hasArtifacts()
hasArtifacts
in class LegacyBuildObject
public Map getArtifacts()
BuildDefinition
Artifact
s.
getArtifacts
in interface BuildDefinition
getArtifacts
in class LegacyBuildObject
public void setArtifacts(Map artifacts)
BuildDefinition
setArtifacts
in interface BuildDefinition
setArtifacts
in class LegacyBuildObject
public void addArtifact(Artifact artifact)
BuildDefinition
addArtifact
in interface BuildDefinition
addArtifact
in class LegacyBuildObject
public BuildResultsSummary getLatestBuildSummary()
getLatestBuildSummary
in interface Build
getLatestBuildSummary
in class LegacyBuildObject
public BuildResultsSummary getFirstBuildSummary()
getFirstBuildSummary
in interface Build
getFirstBuildSummary
in class LegacyBuildObject
public XmppMessageSender getXmppMessageSender()
BuildDefinition
getXmppMessageSender
in interface BuildDefinition
getXmppMessageSender
in class LegacyBuildObject
public void setXmppMessageSender(XmppMessageSender xmppMessageSender)
BuildDefinition
setXmppMessageSender
in interface BuildDefinition
setXmppMessageSender
in class LegacyBuildObject
public void setExportStatusStyle(String exportStatusStyle)
setExportStatusStyle
in interface BuildDefinition
setExportStatusStyle
in class LegacyBuildObject
public String getExportStatusStyle()
getExportStatusStyle
in interface BuildDefinition
getExportStatusStyle
in class LegacyBuildObject
public List getBuildLog()
getBuildLog
in interface Build
getBuildLog
in class LegacyBuildObject
public String addBuildLogEntry(String entryDescription)
addBuildLogEntry
in class LegacyBuildObject
entryDescription
- The entry to addpublic String addBuildLogEntry(LogEntry logEntry)
Build
addBuildLogEntry
in interface Build
addBuildLogEntry
in class LegacyBuildObject
logEntry
- The data being logged
LogEntry.getUnstyledLog()
.public boolean isMarkedForManualBuild()
isMarkedForManualBuild
in interface Build
isMarkedForManualBuild
in class LegacyBuildObject
public boolean isMarkedForDependencyBuild()
Build
isMarkedForDependencyBuild
in interface Build
isMarkedForDependencyBuild
in class LegacyBuildObject
public boolean isMarkedForEditBuild()
Build
isMarkedForEditBuild
in interface Build
isMarkedForEditBuild
in class LegacyBuildObject
public void markAsNeedingBuilding(ReasonForBuild reasonForBuild)
Build
markAsNeedingBuilding
in interface Build
markAsNeedingBuilding
in class LegacyBuildObject
reasonForBuild
- The reason we want to build the buildpublic void unmarkForManualBuild()
public ErrorCollection validateBuild()
Build
validateBuild
in interface Build
validateBuild
in class LegacyBuildObject
ErrorCollection
with relevent error messagespublic List getFieldValueItems()
getFieldValueItems
in class LegacyBuildObject
public File getSourceCodeDirectory()
Build
Repository
getSourceCodeDirectory
in interface Build
getSourceCodeDirectory
in class LegacyBuildObject
public long getAverageBuildDuration()
Build
getAverageBuildDuration
in interface Build
getAverageBuildDuration
in class LegacyBuildObject
public BuildResults getPreviousBuildResults(int buildNumber)
Build
BuildResultsImpl
before the passed number
getPreviousBuildResults
in interface Build
getPreviousBuildResults
in class LegacyBuildObject
BuildResultsImpl
. null if no build results can be found before that numberpublic BuildResults getNextBuildResults(int buildNumber)
getNextBuildResults
in interface Build
getNextBuildResults
in class LegacyBuildObject
public void markForDeletion()
Build
markForDeletion
in interface Build
markForDeletion
in class LegacyBuildObject
public boolean isMarkedForDeletion()
Build
isMarkedForDeletion
in interface Build
isMarkedForDeletion
in class LegacyBuildObject
public void setSuspendedFromBuilding(boolean suspendFromBuilding)
Build
setSuspendedFromBuilding
in interface Build
setSuspendedFromBuilding
in class LegacyBuildObject
public boolean isSuspendedFromBuilding()
Build
isSuspendedFromBuilding
in interface Build
isSuspendedFromBuilding
in class LegacyBuildObject
public void clearBuildLog()
Build
clearBuildLog
in interface Build
clearBuildLog
in class LegacyBuildObject
public String getAverageBuildDurationAsString()
public boolean equals(Object o)
equals
in class LegacyBuildObject
o
- object we are comparing
public int hashCode()
hashCode
in class LegacyBuildObject
public void setBuilderManager(BuilderManager builderManager)
setBuilderManager
in class LegacyBuildObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |