Class AutomaticDependencyManagementPlugin
java.lang.Object
com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
com.atlassian.bamboo.plugins.maven.dependencies.AutomaticDependencyManagementPlugin
- All Implemented Interfaces:
DependenciesPlanConfigurationPlugin
,PlanConfigurationUiPlugin
,InitablePluginModule
,CustomBuildDefinitionGenerator
,BambooPluginModule
,BuildConfigurationAwarePlugin
,ConfigurablePlugin
,RenderableBuildConfiguration
,Serializable
public class AutomaticDependencyManagementPlugin
extends BaseConfigurablePlugin
implements DependenciesPlanConfigurationPlugin, CustomBuildDefinitionGenerator, Serializable
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor, templateRenderer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable AutomaticDependencyManagementConfig
getConfig
(@NotNull BuildDefinition buildDefinition) static @Nullable AutomaticDependencyManagementConfig
getConfig
(@NotNull ImmutablePlan plan) 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 planprotected void
populateContextForEdit
(@NotNull Map<String, Object> context, @NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan) protected void
populateContextForView
(@NotNull Map<String, Object> context, @NotNull Plan plan) Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, prepareConfigObject, setTemplateRenderer, validate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtml
-
Field Details
-
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_OBJECT
- See Also:
-
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT
- See Also:
-
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
- See Also:
-
CTX_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
- See Also:
-
CTX_DEPENDENCY_PROVIDER_JOB
- See Also:
-
-
Constructor Details
-
AutomaticDependencyManagementPlugin
public AutomaticDependencyManagementPlugin()
-
-
Method Details
-
isApplicableTo
Description copied from interface:PlanConfigurationUiPlugin
Checks if the plugin is applicable to a plan. Typical implementation is to check plan's type (chain, build, job).- Specified by:
isApplicableTo
in interfacePlanConfigurationUiPlugin
- Parameters:
plan
- Plan to be verified- Returns:
- true if particular configuration is applicable to input plan
-
populateContextForView
protected void populateContextForView(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull Plan plan) - Overrides:
populateContextForView
in classBaseBuildConfigurationAwarePlugin
-
populateContextForEdit
protected void populateContextForEdit(@NotNull @NotNull Map<String, Object> context, @NotNull @NotNull BuildConfiguration buildConfiguration, @Nullable @Nullable Plan plan) - Overrides:
populateContextForEdit
in classBaseBuildConfigurationAwarePlugin
-
populateBuildDefinition
public void populateBuildDefinition(@NotNull @NotNull ImmutablePlan plan, @NotNull @NotNull Map<String, Object> configObjects, @NotNull @NotNull BuildDefinition buildDefinition) For Jobs it adds AutomaticDependencyManagementConfig object from a parent of delivered plan- Specified by:
populateBuildDefinition
in interfaceCustomBuildDefinitionGenerator
- Parameters:
plan
-Plan
whoseBuildDefinition
is being populatedconfigObjects
- - Map - string key, object value. A map to put custom objects into.buildDefinition
- - the fully constructedBuildDefinition
-
getConfigurationKeys
-
getConfig
@Nullable public static @Nullable AutomaticDependencyManagementConfig getConfig(@NotNull @NotNull ImmutablePlan plan) -
getConfig
@Nullable public static @Nullable AutomaticDependencyManagementConfig getConfig(@NotNull @NotNull BuildDefinition buildDefinition)
-