public class AutomaticDependencyManagementPlugin extends BaseConfigurablePlugin implements DependenciesPlanConfigurationPlugin, CustomBuildDefinitionGenerator, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT |
static String |
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED |
static String |
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_OBJECT |
static String |
CTX_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED |
static String |
CTX_DEPENDENCY_PROVIDER_JOB |
moduleDescriptor, templateRenderer
Constructor and Description |
---|
AutomaticDependencyManagementPlugin() |
Modifier and Type | Method and Description |
---|---|
static @Nullable AutomaticDependencyManagementConfig |
getConfig(@NotNull BuildDefinition buildDefinition) |
static @Nullable AutomaticDependencyManagementConfig |
getConfig(@NotNull ImmutablePlan plan) |
@NotNull Set<String> |
getConfigurationKeys() |
boolean |
isApplicableTo(@NotNull ImmutablePlan plan)
Checks if the plugin is applicable to a plan.
|
void |
populateBuildDefinition(@NotNull ImmutablePlan plan,
@NotNull Map<String,Object> configObjects,
@NotNull BuildDefinition buildDefinition)
For Jobs it adds AutomaticDependencyManagementConfig object from a parent of delivered plan
|
protected void |
populateContextForEdit(@NotNull Map<String,Object> context,
@NotNull BuildConfiguration buildConfiguration,
@Nullable Plan plan) |
protected void |
populateContextForView(@NotNull Map<String,Object> context,
@NotNull Plan plan) |
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, prepareConfigObject, setTemplateRenderer, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
init
getEditHtml, getViewHtml
public static final String CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_OBJECT
public static final String CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT
public static final String CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
public static final String CTX_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
public static final String CTX_DEPENDENCY_PROVIDER_JOB
public boolean isApplicableTo(@NotNull @NotNull ImmutablePlan plan)
PlanConfigurationUiPlugin
isApplicableTo
in interface PlanConfigurationUiPlugin
plan
- Plan to be verifiedprotected void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull Plan plan)
populateContextForView
in class BaseBuildConfigurationAwarePlugin
protected void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull BuildConfiguration buildConfiguration, @Nullable @Nullable Plan plan)
populateContextForEdit
in class BaseBuildConfigurationAwarePlugin
public void populateBuildDefinition(@NotNull @NotNull ImmutablePlan plan, @NotNull @NotNull Map<String,Object> configObjects, @NotNull @NotNull BuildDefinition buildDefinition)
populateBuildDefinition
in interface CustomBuildDefinitionGenerator
plan
- Plan
whose BuildDefinition
is being populatedconfigObjects
- - Map - string key, object value. A map to put custom objects into.buildDefinition
- - the fully constructed BuildDefinition
@Nullable public static @Nullable AutomaticDependencyManagementConfig getConfig(@NotNull @NotNull ImmutablePlan plan)
@Nullable public static @Nullable AutomaticDependencyManagementConfig getConfig(@NotNull @NotNull BuildDefinition buildDefinition)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.