|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.build.DefaultBuildDefinition
public class DefaultBuildDefinition
Field Summary | |
---|---|
protected java.util.Map<java.lang.String,Artifact> |
artifacts
|
protected java.lang.String |
buildChangedEmails
|
protected Builder |
builder
|
protected BuildStrategy |
buildStrategy
The project object if the |
protected java.util.Map |
configObjects
|
protected java.util.Map |
customConfiguration
|
protected int |
pollingPeriod
|
protected Repository |
repository
|
protected WebRepositoryViewer |
webRepositoryViewer
|
protected java.lang.String |
workingDirectory
|
protected java.lang.String |
xmlData
|
protected XmppMessageSender |
xmppMessageSender
|
Constructor Summary | |
---|---|
DefaultBuildDefinition()
|
Method Summary | |
---|---|
void |
addArtifact(Artifact artifact)
Add a new artifact to the existing build artifacts |
java.util.Collection<Artifact> |
getArtifactDefinitions()
|
java.util.Map<java.lang.String,Artifact> |
getArtifacts()
Get the custom Artifact s. |
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) |
Builder |
getBuilder()
Obtain the build's Builder . |
BuilderV2 |
getBuilderV2()
|
BuildStrategy |
getBuildStrategy()
Returns to BuildStrategy that the user actually selects |
java.util.Map |
getConfigObjects()
Returns a map of objects generated by the plugins. |
java.util.Map |
getCustomConfiguration()
A map consisting of String key and String value pairs. |
int |
getPollingPeriod()
How long should we wait between checking the build to see if it need building? |
Repository |
getRepository()
Obtain the build's Repository . |
RepositoryV2 |
getRepositoryV2()
A repository object that can be used to perform |
WebRepositoryViewer |
getWebRepositoryViewer()
Get the module responsible for displaying commits for this build. |
XmppMessageSender |
getXmppMessageSender()
The build's option IM message server configuration |
void |
setArtifacts(java.util.Map<java.lang.String,Artifact> artifacts)
Replace the build's artifacts with these ones. |
void |
setBuildChangedEmails(java.lang.String emailAddress)
Define who is notified of build results by email |
void |
setBuilder(Builder builder)
Set the build's builder. |
void |
setBuildStrategy(BuildStrategy buildStrategy)
Set the strategy to override the default build strategy. |
void |
setConfigObjects(java.util.Map configObjects)
|
void |
setCustomConfiguration(java.util.Map customConfiguration)
A map of String key and String value pairs, representing custom |
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 |
setWebRepositoryViewer(WebRepositoryViewer webRepositoryViewer)
Set the module responsibile for displaying commits for this build. |
void |
setWorkingDirectory(java.lang.String buildDirectory)
|
void |
setXmppMessageSender(XmppMessageSender xmppMessageSender)
The build's option IM message server configuration |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BuildStrategy buildStrategy
protected Repository repository
protected WebRepositoryViewer webRepositoryViewer
protected int pollingPeriod
protected java.lang.String xmlData
protected java.util.Map<java.lang.String,Artifact> artifacts
protected java.lang.String buildChangedEmails
protected Builder builder
protected java.lang.String workingDirectory
protected XmppMessageSender xmppMessageSender
protected java.util.Map customConfiguration
protected java.util.Map configObjects
Constructor Detail |
---|
public DefaultBuildDefinition()
Method Detail |
---|
public BuildStrategy getBuildStrategy()
BuildDefinition
BuildStrategy
that the user actually selects
getBuildStrategy
in interface BuildDefinition
BuildStrategy
public void setBuildStrategy(BuildStrategy buildStrategy)
BuildDefinition
setBuildStrategy
in interface BuildDefinition
buildStrategy
- The next build strategy to use.@Nullable public Repository getRepository()
BuildDefinition
Repository
.
getRepository
in interface BuildDefinition
getRepository
in interface BuildPlanDefinition
@Nullable public RepositoryV2 getRepositoryV2()
BuildPlanDefinition
getRepositoryV2
in interface BuildPlanDefinition
public void setRepository(Repository repository)
BuildDefinition
setRepository
in interface BuildDefinition
repository
- The source repoisitorypublic WebRepositoryViewer getWebRepositoryViewer()
getWebRepositoryViewer
in interface BuildDefinition
public void setWebRepositoryViewer(@Nullable WebRepositoryViewer webRepositoryViewer)
setWebRepositoryViewer
in interface BuildDefinition
webRepositoryViewer
- the class responsible for rendering the commits for a build resultpublic int getPollingPeriod()
BuildDefinition
getPollingPeriod
in interface BuildDefinition
public void setPollingPeriod(int pollingPeriod)
BuildDefinition
setPollingPeriod
in interface BuildDefinition
pollingPeriod
- The time in secondspublic Builder getBuilder()
BuildDefinition
Builder
. Returns null if builder plugin module not found.
getBuilder
in interface BuildDefinition
public BuilderV2 getBuilderV2()
getBuilderV2
in interface BuildPlanDefinition
public void setBuilder(Builder builder)
BuildDefinition
setBuilder
in interface BuildDefinition
builder
- the builderpublic java.lang.String getBuildChangedEmails()
BuildDefinition
getBuildChangedEmails
in interface BuildDefinition
public java.util.List getBuildChangedEmailList()
BuildDefinition
getBuildChangedEmailList
in interface BuildDefinition
public java.util.Collection<Artifact> getArtifactDefinitions()
getArtifactDefinitions
in interface BuildPlanDefinition
public void setBuildChangedEmails(java.lang.String emailAddress)
BuildDefinition
setBuildChangedEmails
in interface BuildDefinition
emailAddress
- The build email addresspublic java.util.Map<java.lang.String,Artifact> getArtifacts()
BuildDefinition
Artifact
s.
getArtifacts
in interface BuildDefinition
public void addArtifact(Artifact artifact)
BuildDefinition
addArtifact
in interface BuildDefinition
public void setArtifacts(java.util.Map<java.lang.String,Artifact> artifacts)
BuildDefinition
setArtifacts
in interface BuildDefinition
public java.util.Map getCustomConfiguration()
BuildDefinition
getCustomConfiguration
in interface BuildDefinition
getCustomConfiguration
in interface BuildPlanDefinition
public void setCustomConfiguration(java.util.Map customConfiguration)
BuildDefinition
setCustomConfiguration
in interface BuildDefinition
customConfiguration
- - can be nullpublic java.util.Map getConfigObjects()
BuildDefinition
getConfigObjects
in interface BuildDefinition
Map
with a String
as a key and an arbritary objects as the value.public void setConfigObjects(java.util.Map configObjects)
setConfigObjects
in interface BuildDefinition
public void setWorkingDirectory(java.lang.String buildDirectory)
setWorkingDirectory
in interface BuildDefinition
public XmppMessageSender getXmppMessageSender()
BuildDefinition
getXmppMessageSender
in interface BuildDefinition
public void setXmppMessageSender(XmppMessageSender xmppMessageSender)
BuildDefinition
setXmppMessageSender
in interface BuildDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |