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 AutomaticDependencyManagementConfig |
getConfig(BuildDefinition buildDefinition) |
static AutomaticDependencyManagementConfig |
getConfig(ImmutablePlan plan) |
Set<String> |
getConfigurationKeys() |
boolean |
isApplicableTo(ImmutablePlan plan)
Checks if the plugin is applicable to a plan.
|
void |
populateBuildDefinition(ImmutablePlan plan,
Map<String,Object> configObjects,
BuildDefinition buildDefinition)
For Jobs it adds AutomaticDependencyManagementConfig object from a parent plan
|
protected void |
populateContextForEdit(Map<String,Object> context,
BuildConfiguration buildConfiguration,
Plan plan) |
protected void |
populateContextForView(Map<String,Object> context,
Plan plan) |
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, getEditHtml, getViewHtml, init, prepareConfigObject, setTemplateRenderer, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isApplicableTo
isConfigurationMissing
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 ImmutablePlan plan)
PlanConfigurationUiPlugin
isApplicableTo
in interface PlanConfigurationUiPlugin
plan
- Plan to be verifiedprotected void populateContextForView(@NotNull Map<String,Object> context, @NotNull Plan plan)
populateContextForView
in class BaseBuildConfigurationAwarePlugin
protected void populateContextForEdit(@NotNull Map<String,Object> context, @NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
populateContextForEdit
in class BaseBuildConfigurationAwarePlugin
public void populateBuildDefinition(@NotNull ImmutablePlan plan, @NotNull Map<String,Object> configObjects, @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 AutomaticDependencyManagementConfig getConfig(@NotNull ImmutablePlan plan)
@Nullable public static AutomaticDependencyManagementConfig getConfig(@NotNull BuildDefinition buildDefinition)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.