|
||||||||||
| 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 Artifacts. |
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 LegacyBuildObjectpublic void setBuild(Build build)
setBuild in interface BuildDefinitionForBuildsetBuild in class LegacyBuildObjectpublic BuildDefinition getBuildDefinition()
BuildBuildDefinition that backs this buildd
getBuildDefinition in interface BuildgetBuildDefinition in class LegacyBuildObjectBuildDefinition object. Never null.public long getId()
getId in interface BambooObjectgetId in class LegacyBuildObjectpublic void setId(long id)
setId in interface BambooObjectsetId in class LegacyBuildObjectpublic Project getProject()
BuildProject
getProject in interface BuildgetProject in class LegacyBuildObjectProject. Never nullpublic Build getBuild()
getBuild in interface BuildDefinitionForBuildgetBuild in class LegacyBuildObjectpublic BuildStrategy getCurrentBuildStrategy()
BuildStrategy?
If the build has never been built, it returns a InitialBootstapBuildStrategy
otherwise it returns the build specific BuildStrategy.
getCurrentBuildStrategy in interface BuildgetCurrentBuildStrategy in class LegacyBuildObjectpublic BuildStrategy getBuildStrategy()
BuildDefinitionBuildStrategy that the user actually selects
getBuildStrategy in interface BuildDefinitiongetBuildStrategy in class LegacyBuildObjectBuildStrategypublic void setBuildStrategy(BuildStrategy buildStrategy)
setBuildStrategy in interface BuildDefinitionsetBuildStrategy in class LegacyBuildObjectbuildStrategy - The next build strategy to use.public Repository getRepository()
Repository.
getRepository in interface BuildDefinitiongetRepository in class LegacyBuildObjectpublic void setRepository(Repository repository)
setRepository in interface BuildDefinitionsetRepository in class LegacyBuildObjectrepository - The source repoisitorypublic int getPollingPeriod()
getPollingPeriod in interface BuildDefinitiongetPollingPeriod in class LegacyBuildObjectpublic void setPollingPeriod(int pollingPeriod)
setPollingPeriod in interface BuildDefinitionsetPollingPeriod in class LegacyBuildObjectpollingPeriod - The time in secondspublic Builder getBuilder()
Builder.
getBuilder in interface BuildDefinitiongetBuilder in class LegacyBuildObjectpublic void setBuilder(Builder builder)
setBuilder in interface BuildDefinitionsetBuilder in class LegacyBuildObjectbuilder - the builderpublic String getName()
getName in interface BuildgetName in interface ProjectgetName in class LegacyBuildObjectpublic void setName(String name)
setName in interface ProjectsetName in class LegacyBuildObjectpublic String getKey()
Build
getKey in interface BuildgetKey in interface ProjectgetKey in class LegacyBuildObjectpublic BuildDefinition getDefaultBuildDefinition()
getDefaultBuildDefinition in class LegacyBuildObjectpublic List getBuilds()
ProjectBuild associated with the Project. Returns Collections.EMPTY_LIST` if
there are no Builds for the project.
getBuilds in interface ProjectgetBuilds in class LegacyBuildObjectList of Builds. Collections.EMPTY_LIST` if no builds.public void setBuildKey(String buildKey)
Build
setBuildKey in interface BuildsetBuildKey in class LegacyBuildObjectbuildKey - The value of the keypublic String getBuildChangedEmails()
getBuildChangedEmails in interface BuildDefinitiongetBuildChangedEmails in class LegacyBuildObjectpublic void setBuildChangedEmails(String emailAddress)
setBuildChangedEmails in interface BuildDefinitionsetBuildChangedEmails in class LegacyBuildObjectemailAddress - The build email addresspublic List getBuildChangedEmailList()
getBuildChangedEmailList in interface BuildDefinitiongetBuildChangedEmailList in class LegacyBuildObjectpublic int getLastBuildNumber()
getLastBuildNumber in interface BuildgetLastBuildNumber in class LegacyBuildObjectpublic int getFirstBuildNumber()
getFirstBuildNumber in interface BuildgetFirstBuildNumber in class LegacyBuildObjectpublic void addBuildResultSummary(BuildResultsSummary buildResultsSummary)
addBuildResultSummary in interface BuildaddBuildResultSummary in class LegacyBuildObjectbuildResultsSummary - The build summarypublic void removeBuildResultSummary(long buildNumber)
Build
removeBuildResultSummary in interface BuildremoveBuildResultSummary in class LegacyBuildObjectbuildNumber - the number of the build to deletepublic void setBuildResultSummaries(List buildResultSummaries)
LegacyBuildObject
setBuildResultSummaries in class LegacyBuildObjectpublic List getBuildResultSummaries()
BuildResultsSummary objects (most recent first), one for each
build.
getBuildResultSummaries in interface BuildgetBuildResultSummaries in class LegacyBuildObjectpublic void setInBuildQueue(boolean isBuilding)
setInBuildQueue in interface BuildsetInBuildQueue in class LegacyBuildObjectisBuilding - Is the build currently in the build pipeline?public boolean isInBuildQueue()
isInBuildQueue in interface BuildisInBuildQueue in class LegacyBuildObjectpublic Date getLastBuildStartTime()
getLastBuildStartTime in interface BuildgetLastBuildStartTime in class LegacyBuildObjectpublic void setLastBuildStartTime(Date lastBuildTime)
setLastBuildStartTime in interface BuildsetLastBuildStartTime in class LegacyBuildObjectlastBuildTime - the timepublic void setWorkingDirectory(String buildDirectory)
setWorkingDirectory in interface BuildDefinitionsetWorkingDirectory in class LegacyBuildObjectpublic boolean hasBuildResults()
hasBuildResults in interface BuildhasBuildResults in class LegacyBuildObjectpublic EmailStrategy getEmailStrategy()
getEmailStrategy in interface BuildDefinitiongetEmailStrategy in class LegacyBuildObjectpublic void setEmailStrategy(EmailStrategy emailStrategy)
setEmailStrategy in interface BuildDefinitionsetEmailStrategy in class LegacyBuildObjectemailStrategy - the strategy to use from now onpublic void setBuildDependencies(Set buildDependencies)
BuildDefinitionString represneting the build keys
setBuildDependencies in interface BuildDefinitionsetBuildDependencies in class LegacyBuildObjectpublic Set getBuildDependenciesSet()
getBuildDependenciesSet in class LegacyBuildObjectpublic void addBuildDependency(String buildKey)
addBuildDependency in interface BuildDefinitionaddBuildDependency in class LegacyBuildObjectpublic void removeBuildDependency(String buildKey)
removeBuildDependency in interface BuildDefinitionremoveBuildDependency in class LegacyBuildObjectpublic boolean hasBuildDependency(String buildKey)
hasBuildDependency in interface BuildDefinitionhasBuildDependency in class LegacyBuildObjectpublic List getBuildDependencies()
getBuildDependencies in interface BuildDefinitiongetBuildDependencies in class LegacyBuildObjectpublic boolean hasArtifacts()
hasArtifacts in class LegacyBuildObjectpublic Map getArtifacts()
BuildDefinitionArtifacts.
getArtifacts in interface BuildDefinitiongetArtifacts in class LegacyBuildObjectpublic void setArtifacts(Map artifacts)
BuildDefinition
setArtifacts in interface BuildDefinitionsetArtifacts in class LegacyBuildObjectpublic void addArtifact(Artifact artifact)
BuildDefinition
addArtifact in interface BuildDefinitionaddArtifact in class LegacyBuildObjectpublic BuildResultsSummary getLatestBuildSummary()
getLatestBuildSummary in interface BuildgetLatestBuildSummary in class LegacyBuildObjectpublic BuildResultsSummary getFirstBuildSummary()
getFirstBuildSummary in interface BuildgetFirstBuildSummary in class LegacyBuildObjectpublic XmppMessageSender getXmppMessageSender()
BuildDefinition
getXmppMessageSender in interface BuildDefinitiongetXmppMessageSender in class LegacyBuildObjectpublic void setXmppMessageSender(XmppMessageSender xmppMessageSender)
BuildDefinition
setXmppMessageSender in interface BuildDefinitionsetXmppMessageSender in class LegacyBuildObjectpublic void setExportStatusStyle(String exportStatusStyle)
setExportStatusStyle in interface BuildDefinitionsetExportStatusStyle in class LegacyBuildObjectpublic String getExportStatusStyle()
getExportStatusStyle in interface BuildDefinitiongetExportStatusStyle in class LegacyBuildObjectpublic List getBuildLog()
getBuildLog in interface BuildgetBuildLog in class LegacyBuildObjectpublic String addBuildLogEntry(String entryDescription)
addBuildLogEntry in class LegacyBuildObjectentryDescription - The entry to addpublic String addBuildLogEntry(LogEntry logEntry)
Build
addBuildLogEntry in interface BuildaddBuildLogEntry in class LegacyBuildObjectlogEntry - The data being logged
LogEntry.getUnstyledLog().public boolean isMarkedForManualBuild()
isMarkedForManualBuild in interface BuildisMarkedForManualBuild in class LegacyBuildObjectpublic boolean isMarkedForDependencyBuild()
Build
isMarkedForDependencyBuild in interface BuildisMarkedForDependencyBuild in class LegacyBuildObjectpublic boolean isMarkedForEditBuild()
Build
isMarkedForEditBuild in interface BuildisMarkedForEditBuild in class LegacyBuildObjectpublic void markAsNeedingBuilding(ReasonForBuild reasonForBuild)
Build
markAsNeedingBuilding in interface BuildmarkAsNeedingBuilding in class LegacyBuildObjectreasonForBuild - The reason we want to build the buildpublic void unmarkForManualBuild()
public ErrorCollection validateBuild()
Build
validateBuild in interface BuildvalidateBuild in class LegacyBuildObjectErrorCollection with relevent error messagespublic List getFieldValueItems()
getFieldValueItems in class LegacyBuildObjectpublic File getSourceCodeDirectory()
BuildRepository
getSourceCodeDirectory in interface BuildgetSourceCodeDirectory in class LegacyBuildObjectpublic long getAverageBuildDuration()
Build
getAverageBuildDuration in interface BuildgetAverageBuildDuration in class LegacyBuildObjectpublic BuildResults getPreviousBuildResults(int buildNumber)
BuildBuildResultsImpl before the passed number
getPreviousBuildResults in interface BuildgetPreviousBuildResults in class LegacyBuildObjectBuildResultsImpl. null if no build results can be found before that numberpublic BuildResults getNextBuildResults(int buildNumber)
getNextBuildResults in interface BuildgetNextBuildResults in class LegacyBuildObjectpublic void markForDeletion()
Build
markForDeletion in interface BuildmarkForDeletion in class LegacyBuildObjectpublic boolean isMarkedForDeletion()
Build
isMarkedForDeletion in interface BuildisMarkedForDeletion in class LegacyBuildObjectpublic void setSuspendedFromBuilding(boolean suspendFromBuilding)
Build
setSuspendedFromBuilding in interface BuildsetSuspendedFromBuilding in class LegacyBuildObjectpublic boolean isSuspendedFromBuilding()
Build
isSuspendedFromBuilding in interface BuildisSuspendedFromBuilding in class LegacyBuildObjectpublic void clearBuildLog()
Build
clearBuildLog in interface BuildclearBuildLog in class LegacyBuildObjectpublic String getAverageBuildDurationAsString()
public boolean equals(Object o)
equals in class LegacyBuildObjecto - object we are comparing
public int hashCode()
hashCode in class LegacyBuildObjectpublic void setBuilderManager(BuilderManager builderManager)
setBuilderManager in class LegacyBuildObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||