|
||||||||||
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 BranchIntegrationConfiguration |
branchIntegrationConfiguration
|
protected BranchMonitoringConfiguration |
branchMonitoringConfiguration
|
protected BranchSpecificConfiguration |
branchSpecificConfiguration
|
protected Boolean |
cleanWorkingDirectory
|
protected Map<String,Object> |
configObjects
|
protected Map<String,String> |
customConfiguration
|
protected Long |
repositoryDefiningWorkingDir
|
protected List<TaskDefinition> |
taskDefinitions
|
protected com.google.common.collect.ImmutableList<TriggerDefinition> |
triggerDefinitions
|
protected String |
workingDirectory
|
protected String |
xmlData
|
Constructor Summary | |
---|---|
DefaultBuildDefinition(boolean merged)
|
Method Summary | |
---|---|
BranchIntegrationConfiguration |
getBranchIntegrationConfiguration()
Returns ChainBranch integration strategy settings, including the branch to merge with, and... |
BranchMonitoringConfiguration |
getBranchMonitoringConfiguration()
Returns the current branch monitoring configuration of a build plan. |
BranchSpecificConfiguration |
getBranchSpecificConfiguration()
Returns any configuration that is specific to a branch plan, and not so relevant for a normal plan. |
List<BuildStrategy> |
getBuildStrategies()
Returns triggers defined for this object as BuildStrategies. |
Map<String,Object> |
getConfigObjects()
Returns a map of objects generated by the plugins. |
Map<String,String> |
getCustomConfiguration()
/** |
Long |
getRepositoryIdDefiningWorkingDir()
|
List<TaskDefinition> |
getTaskDefinitions()
All tasks defined for this build. |
com.google.common.collect.ImmutableList<TriggerDefinition> |
getTriggerDefinitions()
Definitions of all automatic build triggers defined for this build. |
Boolean |
isCleanWorkingDirectory()
Should the working directory be cleaned after build. |
boolean |
isMerged()
|
boolean |
isValidValue(Object validValue)
Whether or not a given object is a valid value for this BuildDefinition. |
void |
setBranchIntegrationConfiguration(BranchIntegrationConfiguration branchIntegrationConfiguration)
|
void |
setBranchMonitoringConfiguration(BranchMonitoringConfiguration branchMonitoringConfiguration)
|
void |
setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration)
|
void |
setBuildStrategies(List<BuildStrategy> buildStrategies)
Replace existing list of triggers with a new one. |
void |
setCleanWorkingDirectory(boolean cleanWorkingDirectory)
Set the working directory be cleaned or not cleaned after build |
void |
setConfigObjects(Map<String,Object> configObjects)
|
void |
setCustomConfiguration(Map<String,String> customConfiguration)
A map of String key and String value pairs, representing custom |
void |
setMerged(boolean value)
Set whether or not this BuildDefinition has been merged from multiple sources. |
void |
setRepositoryIdDefiningWorkingDir(long repositoryDefiningWorkingDir)
|
void |
setTaskDefinitions(List<TaskDefinition> taskConfigs)
|
void |
setTriggerDefinitions(List<TriggerDefinition> triggerDefinitions)
Replace existing list of triggers with a new one. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Boolean cleanWorkingDirectory
protected BranchMonitoringConfiguration branchMonitoringConfiguration
protected BranchIntegrationConfiguration branchIntegrationConfiguration
protected BranchSpecificConfiguration branchSpecificConfiguration
protected String xmlData
protected String workingDirectory
protected Map<String,String> customConfiguration
protected transient Map<String,Object> configObjects
protected transient List<TaskDefinition> taskDefinitions
protected com.google.common.collect.ImmutableList<TriggerDefinition> triggerDefinitions
protected Long repositoryDefiningWorkingDir
Constructor Detail |
---|
public DefaultBuildDefinition(boolean merged)
Method Detail |
---|
@Contract(value=" -> !null") public List<BuildStrategy> getBuildStrategies()
BuildDefinition
BuildDefinition.getTriggerDefinitions()
and converting its results. Note that this conversion can be lossy,
as not all trigger types are convertible to BuildStrategies. Items that cannot be converted are skipped.
getBuildStrategies
in interface BuildDefinition
getBuildStrategies
in interface PartialBuildDefinition
public void setBuildStrategies(@Nullable List<BuildStrategy> buildStrategies)
BuildDefinition
setBuildStrategies
in interface BuildDefinition
buildStrategies
- List
of BuildStrategy
@Contract(value=" -> !null") public com.google.common.collect.ImmutableList<TriggerDefinition> getTriggerDefinitions()
BuildDefinition
getTriggerDefinitions
in interface BuildDefinition
getTriggerDefinitions
in interface PartialBuildDefinition
public void setTriggerDefinitions(@Nullable List<TriggerDefinition> triggerDefinitions)
BuildDefinition
setTriggerDefinitions
in interface BuildDefinition
triggerDefinitions
- List
of TriggerDefinition
@Contract(value=" -> !null") public BranchMonitoringConfiguration getBranchMonitoringConfiguration()
BuildDefinition
getBranchMonitoringConfiguration
in interface BuildDefinition
getBranchMonitoringConfiguration
in interface PartialBuildDefinition
BranchMonitoringConfiguration
public void setBranchMonitoringConfiguration(@Nullable BranchMonitoringConfiguration branchMonitoringConfiguration)
setBranchMonitoringConfiguration
in interface BuildDefinition
@Contract(value=" -> !null") public BranchIntegrationConfiguration getBranchIntegrationConfiguration()
BuildDefinition
getBranchIntegrationConfiguration
in interface BuildDefinition
getBranchIntegrationConfiguration
in interface PartialBuildDefinition
BranchIntegrationConfiguration
public void setBranchIntegrationConfiguration(@Nullable BranchIntegrationConfiguration branchIntegrationConfiguration)
setBranchIntegrationConfiguration
in interface BuildDefinition
@Contract(value=" -> !null") public Map<String,String> getCustomConfiguration()
BuildDefinition
getCustomConfiguration
in interface BuildDefinition
getCustomConfiguration
in interface PartialBuildDefinition
public void setCustomConfiguration(@NotNull Map<String,String> customConfiguration)
BuildDefinition
setCustomConfiguration
in interface BuildDefinition
customConfiguration
- - can be null@Contract(value=" -> !null") public Map<String,Object> getConfigObjects()
BuildDefinition
getConfigObjects
in interface BuildDefinition
getConfigObjects
in interface PartialBuildDefinition
Map
with a String
as a key and an arbitrary objects as the value.public void setConfigObjects(@NotNull Map<String,Object> configObjects)
setConfigObjects
in interface BuildDefinition
@Contract(value=" -> !null") public List<TaskDefinition> getTaskDefinitions()
BuildDefinition
getTaskDefinitions
in interface BuildDefinition
getTaskDefinitions
in interface PartialBuildDefinition
List
of TaskDefinition
spublic void setTaskDefinitions(@NotNull List<TaskDefinition> taskConfigs)
setTaskDefinitions
in interface BuildDefinition
@Contract(value=" -> !null") public Boolean isCleanWorkingDirectory()
BuildDefinition
isCleanWorkingDirectory
in interface BuildDefinition
isCleanWorkingDirectory
in interface PartialBuildDefinition
public void setCleanWorkingDirectory(boolean cleanWorkingDirectory)
BuildDefinition
setCleanWorkingDirectory
in interface BuildDefinition
@Contract(value=" -> !null") public Long getRepositoryIdDefiningWorkingDir()
getRepositoryIdDefiningWorkingDir
in interface BuildDefinition
getRepositoryIdDefiningWorkingDir
in interface PartialBuildDefinition
public void setRepositoryIdDefiningWorkingDir(long repositoryDefiningWorkingDir)
setRepositoryIdDefiningWorkingDir
in interface BuildDefinition
@Contract(value=" -> !null") public BranchSpecificConfiguration getBranchSpecificConfiguration()
BuildDefinition
getBranchSpecificConfiguration
in interface BuildDefinition
getBranchSpecificConfiguration
in interface PartialBuildDefinition
public void setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration)
setBranchSpecificConfiguration
in interface BuildDefinition
public boolean isMerged()
isMerged
in interface PartialBuildDefinition
public void setMerged(boolean value)
BuildDefinition
setMerged
in interface BuildDefinition
value
- true if mergedpublic boolean isValidValue(@Nullable Object validValue)
BuildDefinition
isValidValue
in interface BuildDefinition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |