|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BuildDefinition
Each build has a BuildDefinition
. This class encapsulate the configuration aspects of a build. What the
actual builds look like? What should be executed?
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()
Deprecated. since 5.8 use getTriggerDefinitions() |
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. |
List<TriggerDefinition> |
getTriggerDefinitions()
Definitions of all automatic build triggers defined for this build. |
Boolean |
isCleanWorkingDirectory()
Should the working directory be cleaned after build. |
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)
Deprecated. since 5.8 |
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> configMap)
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 repositoryDefininingWorkingDir)
|
void |
setTaskDefinitions(List<TaskDefinition> taskDefinitions)
|
void |
setTriggerDefinitions(List<TriggerDefinition> triggerDefinitions)
Replace existing list of triggers with a new one. |
Methods inherited from interface com.atlassian.bamboo.build.PartialBuildDefinition |
---|
isMerged |
Method Detail |
---|
@Deprecated @Contract(value=" -> !null") List<BuildStrategy> getBuildStrategies()
getTriggerDefinitions()
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 PartialBuildDefinition
@Deprecated void setBuildStrategies(@Nullable List<BuildStrategy> buildStrategies)
buildStrategies
- List
of BuildStrategy
@Contract(value=" -> !null") List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions
in interface PartialBuildDefinition
void setTriggerDefinitions(@Nullable List<TriggerDefinition> triggerDefinitions)
triggerDefinitions
- List
of TriggerDefinition
@Contract(value=" -> !null") BranchMonitoringConfiguration getBranchMonitoringConfiguration()
getBranchMonitoringConfiguration
in interface PartialBuildDefinition
BranchMonitoringConfiguration
void setBranchMonitoringConfiguration(@Nullable BranchMonitoringConfiguration branchMonitoringConfiguration)
@Contract(value=" -> !null") BranchIntegrationConfiguration getBranchIntegrationConfiguration()
getBranchIntegrationConfiguration
in interface PartialBuildDefinition
BranchIntegrationConfiguration
void setBranchIntegrationConfiguration(BranchIntegrationConfiguration branchIntegrationConfiguration)
@Contract(value=" -> !null") BranchSpecificConfiguration getBranchSpecificConfiguration()
getBranchSpecificConfiguration
in interface PartialBuildDefinition
void setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration)
@Contract(value=" -> !null") Map<String,String> getCustomConfiguration()
getCustomConfiguration
in interface PartialBuildDefinition
void setCustomConfiguration(@NotNull Map<String,String> configMap)
configMap
- - can be null@Contract(value=" -> !null") Map<String,Object> getConfigObjects()
getConfigObjects
in interface PartialBuildDefinition
Map
with a String
as a key and an arbitrary objects as the value.void setConfigObjects(@NotNull Map<String,Object> configObjects)
@Contract(value=" -> !null") List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions
in interface PartialBuildDefinition
List
of TaskDefinition
svoid setTaskDefinitions(@NotNull List<TaskDefinition> taskDefinitions)
@Contract(value=" -> !null") Boolean isCleanWorkingDirectory()
isCleanWorkingDirectory
in interface PartialBuildDefinition
void setCleanWorkingDirectory(boolean cleanWorkingDirectory)
cleanWorkingDirectory
- @Contract(value=" -> !null") Long getRepositoryIdDefiningWorkingDir()
getRepositoryIdDefiningWorkingDir
in interface PartialBuildDefinition
void setRepositoryIdDefiningWorkingDir(long repositoryDefininingWorkingDir)
void setMerged(boolean value)
value
- true if mergedboolean isValidValue(@Nullable Object validValue)
validValue
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |