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()
/**
|
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 |
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 |
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 repositoryDefininingWorkingDir) |
void |
setTaskDefinitions(List<TaskDefinition> taskDefinitions) |
void |
setTriggerDefinitions(List<TriggerDefinition> triggerDefinitions)
Replace existing list of triggers with a new one.
|
isMerged
@Nullable List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions
in interface PartialBuildDefinition
void setTriggerDefinitions(@Nullable List<TriggerDefinition> triggerDefinitions)
triggerDefinitions
- List
of TriggerDefinition
@NotNull BranchMonitoringConfiguration getBranchMonitoringConfiguration()
getBranchMonitoringConfiguration
in interface PartialBuildDefinition
BranchMonitoringConfiguration
void setBranchMonitoringConfiguration(@Nullable BranchMonitoringConfiguration branchMonitoringConfiguration)
@NotNull BranchIntegrationConfiguration getBranchIntegrationConfiguration()
getBranchIntegrationConfiguration
in interface PartialBuildDefinition
BranchIntegrationConfiguration
void setBranchIntegrationConfiguration(BranchIntegrationConfiguration branchIntegrationConfiguration)
@NotNull BranchSpecificConfiguration getBranchSpecificConfiguration()
getBranchSpecificConfiguration
in interface PartialBuildDefinition
void setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration)
@NotNull Map<String,String> getCustomConfiguration()
getCustomConfiguration
in interface PartialBuildDefinition
void setCustomConfiguration(@NotNull Map<String,String> configMap)
configMap
- - can be null@NotNull Map<String,Object> getConfigObjects()
getConfigObjects
in interface PartialBuildDefinition
Map
with a String
as a key and an arbitrary objects as the value.@NotNull List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions
in interface PartialBuildDefinition
List
of TaskDefinition
svoid setTaskDefinitions(@NotNull List<TaskDefinition> taskDefinitions)
@NotNull Boolean isCleanWorkingDirectory()
isCleanWorkingDirectory
in interface PartialBuildDefinition
void setCleanWorkingDirectory(boolean cleanWorkingDirectory)
cleanWorkingDirectory
- @NotNull Long getRepositoryIdDefiningWorkingDir()
getRepositoryIdDefiningWorkingDir
in interface PartialBuildDefinition
void setRepositoryIdDefiningWorkingDir(long repositoryDefininingWorkingDir)
void setMerged(boolean value)
value
- true if mergedboolean isValidValue(@Nullable Object validValue)
validValue
- @NotNull DockerPipelineConfiguration getDockerPipelineConfiguration()
getDockerPipelineConfiguration
in interface PartialBuildDefinition
void setDockerPipelineConfiguration(@NotNull DockerPipelineConfiguration dockerPipelineConfiguration)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.