public class DefaultBuildDefinition extends Object implements BuildDefinition
Modifier and Type | Field and Description |
---|---|
protected BranchIntegrationConfiguration |
branchIntegrationConfiguration |
protected BranchMonitoringConfiguration |
branchMonitoringConfiguration |
protected BranchSpecificConfiguration |
branchSpecificConfiguration |
protected Boolean |
cleanWorkingDirectory |
protected Map<String,Object> |
configObjects |
protected FinalHashMap<String,String> |
customConfiguration |
protected DockerPipelineConfiguration |
dockerPipelineConfiguration |
protected Long |
repositoryDefiningWorkingDir |
protected List<TaskDefinition> |
taskDefinitions |
protected FinalArrayList<TriggerDefinition> |
triggerDefinitions |
Constructor and Description |
---|
DefaultBuildDefinition(boolean merged) |
DefaultBuildDefinition(BuildDefinition other) |
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()
/**
|
DockerPipelineConfiguration |
getDockerPipelineConfiguration()
Set Docker pipeline configuration for a particular buildable.
|
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 |
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 |
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 |
setDockerPipelineConfiguration(DockerPipelineConfiguration dockerPipelineConfiguration)
Replace Docker pipeline configuration for this buildable with a different one.
|
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.
|
protected Boolean cleanWorkingDirectory
protected transient BranchMonitoringConfiguration branchMonitoringConfiguration
protected BranchIntegrationConfiguration branchIntegrationConfiguration
protected BranchSpecificConfiguration branchSpecificConfiguration
protected DockerPipelineConfiguration dockerPipelineConfiguration
protected FinalHashMap<String,String> customConfiguration
protected transient List<TaskDefinition> taskDefinitions
protected FinalArrayList<TriggerDefinition> triggerDefinitions
protected Long repositoryDefiningWorkingDir
public DefaultBuildDefinition(boolean merged)
public DefaultBuildDefinition(@NotNull BuildDefinition other)
@Nullable public List<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
@NotNull public BranchMonitoringConfiguration getBranchMonitoringConfiguration()
BuildDefinition
getBranchMonitoringConfiguration
in interface BuildDefinition
getBranchMonitoringConfiguration
in interface PartialBuildDefinition
BranchMonitoringConfiguration
public void setBranchMonitoringConfiguration(@Nullable BranchMonitoringConfiguration branchMonitoringConfiguration)
setBranchMonitoringConfiguration
in interface BuildDefinition
@NotNull public BranchIntegrationConfiguration getBranchIntegrationConfiguration()
BuildDefinition
getBranchIntegrationConfiguration
in interface BuildDefinition
getBranchIntegrationConfiguration
in interface PartialBuildDefinition
BranchIntegrationConfiguration
public void setBranchIntegrationConfiguration(@Nullable BranchIntegrationConfiguration branchIntegrationConfiguration)
setBranchIntegrationConfiguration
in interface BuildDefinition
@NotNull 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@NotNull 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
@NotNull 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
@NotNull public Boolean isCleanWorkingDirectory()
BuildDefinition
isCleanWorkingDirectory
in interface BuildDefinition
isCleanWorkingDirectory
in interface PartialBuildDefinition
public void setCleanWorkingDirectory(boolean cleanWorkingDirectory)
BuildDefinition
setCleanWorkingDirectory
in interface BuildDefinition
@NotNull public Long getRepositoryIdDefiningWorkingDir()
getRepositoryIdDefiningWorkingDir
in interface BuildDefinition
getRepositoryIdDefiningWorkingDir
in interface PartialBuildDefinition
public void setRepositoryIdDefiningWorkingDir(long repositoryDefiningWorkingDir)
setRepositoryIdDefiningWorkingDir
in interface BuildDefinition
@NotNull public BranchSpecificConfiguration getBranchSpecificConfiguration()
BuildDefinition
getBranchSpecificConfiguration
in interface BuildDefinition
getBranchSpecificConfiguration
in interface PartialBuildDefinition
public void setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration)
setBranchSpecificConfiguration
in interface BuildDefinition
@NotNull public DockerPipelineConfiguration getDockerPipelineConfiguration()
BuildDefinition
getDockerPipelineConfiguration
in interface BuildDefinition
getDockerPipelineConfiguration
in interface PartialBuildDefinition
public void setDockerPipelineConfiguration(@NotNull DockerPipelineConfiguration dockerPipelineConfiguration)
BuildDefinition
setDockerPipelineConfiguration
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
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.