public interface BuildDefinition extends PartialBuildDefinition
BuildDefinition. This class encapsulate the configuration aspects of a build. What the
actual builds look like? What should be executed?| Modifier and Type | Method and Description |
|---|---|
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.
|
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 |
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.
|
isMerged@Contract(value=" -> !null") List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions in interface PartialBuildDefinitionvoid setTriggerDefinitions(@Nullable
List<TriggerDefinition> triggerDefinitions)
triggerDefinitions - List of TriggerDefinition@Contract(value=" -> !null") BranchMonitoringConfiguration getBranchMonitoringConfiguration()
getBranchMonitoringConfiguration in interface PartialBuildDefinitionBranchMonitoringConfigurationvoid setBranchMonitoringConfiguration(@Nullable
BranchMonitoringConfiguration branchMonitoringConfiguration)
@Contract(value=" -> !null") BranchIntegrationConfiguration getBranchIntegrationConfiguration()
getBranchIntegrationConfiguration in interface PartialBuildDefinitionBranchIntegrationConfigurationvoid setBranchIntegrationConfiguration(BranchIntegrationConfiguration branchIntegrationConfiguration)
@Contract(value=" -> !null") BranchSpecificConfiguration getBranchSpecificConfiguration()
getBranchSpecificConfiguration in interface PartialBuildDefinitionvoid setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration)
@Contract(value=" -> !null") Map<String,String> getCustomConfiguration()
getCustomConfiguration in interface PartialBuildDefinitionvoid setCustomConfiguration(@NotNull
Map<String,String> configMap)
configMap - - can be null@Contract(value=" -> !null") Map<String,Object> getConfigObjects()
getConfigObjects in interface PartialBuildDefinitionMap with a String as a key and an arbitrary objects as the value.@Contract(value=" -> !null") List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions in interface PartialBuildDefinitionList of TaskDefinitionsvoid setTaskDefinitions(@NotNull
List<TaskDefinition> taskDefinitions)
@Contract(value=" -> !null") Boolean isCleanWorkingDirectory()
isCleanWorkingDirectory in interface PartialBuildDefinitionvoid setCleanWorkingDirectory(boolean cleanWorkingDirectory)
cleanWorkingDirectory - @Contract(value=" -> !null") Long getRepositoryIdDefiningWorkingDir()
getRepositoryIdDefiningWorkingDir in interface PartialBuildDefinitionvoid setRepositoryIdDefiningWorkingDir(long repositoryDefininingWorkingDir)
void setMerged(boolean value)
value - true if mergedboolean isValidValue(@Nullable
Object validValue)
validValue - Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.