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 |
---|---|
@NotNull BranchIntegrationConfiguration |
getBranchIntegrationConfiguration()
Returns ChainBranch integration strategy settings, including
the branch to merge with, and...
|
@NotNull BranchMonitoringConfiguration |
getBranchMonitoringConfiguration()
Returns the current branch monitoring configuration of a build plan.
|
@NotNull BranchSpecificConfiguration |
getBranchSpecificConfiguration()
Returns any configuration that is specific to a branch plan, and not so relevant for a normal plan.
|
@NotNull Map<String,Object> |
getConfigObjects()
Returns a map of objects generated by the plugins.
|
@NotNull Map<String,String> |
getCustomConfiguration()
/**
|
@NotNull DockerPipelineConfiguration |
getDockerPipelineConfiguration()
Set Docker pipeline configuration for a particular buildable.
|
@NotNull Long |
getRepositoryIdDefiningWorkingDir() |
@NotNull List<TaskDefinition> |
getTaskDefinitions()
All tasks defined for this build.
|
@Nullable List<TriggerDefinition> |
getTriggerDefinitions()
Definitions of all automatic build triggers defined for this build.
|
@NotNull Boolean |
isCleanWorkingDirectory()
Should the working directory be cleaned after build.
|
boolean |
isValidValue(@Nullable Object validValue)
Whether or not a given object is a valid value for this BuildDefinition.
|
void |
setBranchIntegrationConfiguration(BranchIntegrationConfiguration branchIntegrationConfiguration) |
void |
setBranchMonitoringConfiguration(@Nullable BranchMonitoringConfiguration branchMonitoringConfiguration) |
void |
setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration) |
void |
setCleanWorkingDirectory(boolean cleanWorkingDirectory)
Set the working directory be cleaned or not cleaned after build
|
void |
setConfigObjects(@NotNull Map<String,Object> configObjects) |
void |
setCustomConfiguration(@NotNull Map<String,String> configMap)
A map of String key and String value pairs, representing custom
|
void |
setDockerPipelineConfiguration(@NotNull 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(@NotNull List<TaskDefinition> taskDefinitions) |
void |
setTriggerDefinitions(@Nullable List<TriggerDefinition> triggerDefinitions)
Replace existing list of triggers with a new one.
|
isMerged
@Nullable @Nullable List<TriggerDefinition> getTriggerDefinitions()
getTriggerDefinitions
in interface PartialBuildDefinition
void setTriggerDefinitions(@Nullable @Nullable List<TriggerDefinition> triggerDefinitions)
triggerDefinitions
- List
of TriggerDefinition
@NotNull @NotNull BranchMonitoringConfiguration getBranchMonitoringConfiguration()
getBranchMonitoringConfiguration
in interface PartialBuildDefinition
BranchMonitoringConfiguration
void setBranchMonitoringConfiguration(@Nullable @Nullable BranchMonitoringConfiguration branchMonitoringConfiguration)
@NotNull @NotNull BranchIntegrationConfiguration getBranchIntegrationConfiguration()
getBranchIntegrationConfiguration
in interface PartialBuildDefinition
BranchIntegrationConfiguration
void setBranchIntegrationConfiguration(BranchIntegrationConfiguration branchIntegrationConfiguration)
@NotNull @NotNull BranchSpecificConfiguration getBranchSpecificConfiguration()
getBranchSpecificConfiguration
in interface PartialBuildDefinition
void setBranchSpecificConfiguration(BranchSpecificConfiguration branchSpecificConfiguration)
@NotNull @NotNull Map<String,String> getCustomConfiguration()
getCustomConfiguration
in interface PartialBuildDefinition
void setCustomConfiguration(@NotNull @NotNull Map<String,String> configMap)
configMap
- - can be null@NotNull @NotNull Map<String,Object> getConfigObjects()
getConfigObjects
in interface PartialBuildDefinition
Map
with a String
as a key and an arbitrary objects as the value.@NotNull @NotNull List<TaskDefinition> getTaskDefinitions()
getTaskDefinitions
in interface PartialBuildDefinition
List
of TaskDefinition
svoid setTaskDefinitions(@NotNull @NotNull List<TaskDefinition> taskDefinitions)
@NotNull @NotNull Boolean isCleanWorkingDirectory()
isCleanWorkingDirectory
in interface PartialBuildDefinition
void setCleanWorkingDirectory(boolean cleanWorkingDirectory)
cleanWorkingDirectory
- @NotNull @NotNull Long getRepositoryIdDefiningWorkingDir()
getRepositoryIdDefiningWorkingDir
in interface PartialBuildDefinition
void setRepositoryIdDefiningWorkingDir(long repositoryDefininingWorkingDir)
void setMerged(boolean value)
value
- true if mergedboolean isValidValue(@Nullable @Nullable Object validValue)
validValue
- @NotNull @NotNull DockerPipelineConfiguration getDockerPipelineConfiguration()
getDockerPipelineConfiguration
in interface PartialBuildDefinition
void setDockerPipelineConfiguration(@NotNull @NotNull DockerPipelineConfiguration dockerPipelineConfiguration)
Copyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.