public class BuildDefinitionConverter extends Object
BuildDefinition
to and from an XMLConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_POLLING |
static String |
BUILD_TRIGGER_IP |
static String |
CLEAN_WORKING_DIRECTORY |
static String |
DEPENDENT_WILL_BE_TRIGGERED_BY |
static String |
DEPENDENT_WILL_TRIGGER |
static String |
INHERIT_REPOSITORY |
static String |
REPOSITORY_DEFINING_WORKING_DIRECTORY |
static String |
SELECTED_BUILD_STRATEGY
Deprecated.
since 4.3: used only for conversion
|
static String |
SELECTED_BUILDER_KEY |
Constructor and Description |
---|
BuildDefinitionConverter(com.atlassian.plugin.PluginAccessor pluginAccessor) |
Modifier and Type | Method and Description |
---|---|
BuildDefinition |
copyConfigurationToDefinition(org.apache.commons.configuration.HierarchicalConfiguration fromConfig,
BuildDefinition buildDefinition)
Copies the
HierarchicalConfiguration items to the passed BuildDefinition object |
static List<BuildStrategy> |
createBuildStrategiesListFromOldConfigurationFormat(BuildStrategyManager buildStrategyManager,
org.apache.commons.configuration.HierarchicalConfiguration fromConfig)
Deprecated.
since 4.3
|
org.apache.commons.configuration.XMLConfiguration |
fromObject(PartialBuildDefinition buildDefinition) |
List<BuildDefinitionTransformerModuleDescriptor> |
getTransformerDescriptors() |
static <T extends OptionallyConvertibleFromConfig> |
populate(org.apache.commons.configuration.HierarchicalConfiguration fromConfig,
T optionallyConvertibleFromConfig) |
public static final String INHERIT_REPOSITORY
@Deprecated public static final String SELECTED_BUILD_STRATEGY
public static final String REPOSITORY_DEFINING_WORKING_DIRECTORY
public static final String BUILD_POLLING
public static final String BUILD_TRIGGER_IP
public static final String SELECTED_BUILDER_KEY
public static final String DEPENDENT_WILL_TRIGGER
public static final String DEPENDENT_WILL_BE_TRIGGERED_BY
public static final String CLEAN_WORKING_DIRECTORY
public BuildDefinitionConverter(@NotNull com.atlassian.plugin.PluginAccessor pluginAccessor)
public org.apache.commons.configuration.XMLConfiguration fromObject(@NotNull PartialBuildDefinition buildDefinition)
@NotNull public BuildDefinition copyConfigurationToDefinition(@NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull BuildDefinition buildDefinition)
HierarchicalConfiguration
items to the passed BuildDefinition
objectfromConfig
- buildDefinition
- public List<BuildDefinitionTransformerModuleDescriptor> getTransformerDescriptors()
@Nullable public static <T extends OptionallyConvertibleFromConfig> T populate(@NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig, @NotNull T optionallyConvertibleFromConfig)
@Nullable @Deprecated public static List<BuildStrategy> createBuildStrategiesListFromOldConfigurationFormat(@NotNull BuildStrategyManager buildStrategyManager, @NotNull org.apache.commons.configuration.HierarchicalConfiguration fromConfig)
buildStrategyManager
- fromConfig
- Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.