com.atlassian.bamboo.plugins.maven2.dependencies
Class AutomaticDependencyManagementPlugin
java.lang.Object
com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
com.atlassian.bamboo.plugins.maven2.dependencies.AutomaticDependencyManagementPlugin
- All Implemented Interfaces:
- InitablePluginModule, CustomBuildDefinitionGenerator, CustomBuildDefinitionTransformer, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, BuildConfigurationUIPlugin, DependenciesBuildConfigurationPlugin, java.io.Serializable
public class AutomaticDependencyManagementPlugin
- extends BaseConfigurablePlugin
- implements DependenciesBuildConfigurationPlugin, CustomBuildDefinitionGenerator, java.io.Serializable
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_OBJECT
public static final java.lang.String CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_OBJECT
- See Also:
- Constant Field Values
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT
public static final java.lang.String CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT
- See Also:
- Constant Field Values
CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
public static final java.lang.String CFG_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
- See Also:
- Constant Field Values
CFG_DEPENDENCY_PROVIDER_JOB_KEY
public static final java.lang.String CFG_DEPENDENCY_PROVIDER_JOB_KEY
- See Also:
- Constant Field Values
CTX_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
public static final java.lang.String CTX_AUTOMATIC_DEPENDENCY_MANAGEMENT_ENABLED
- See Also:
- Constant Field Values
CTX_DEPENDENCY_PROVIDER_JOB
public static final java.lang.String CTX_DEPENDENCY_PROVIDER_JOB
- See Also:
- Constant Field Values
AutomaticDependencyManagementPlugin
public AutomaticDependencyManagementPlugin()
isApplicableTo
public boolean isApplicableTo(@NotNull
Plan plan)
- Description copied from interface:
BuildConfigurationUIPlugin
- Checks if the plugin is applicable to a plan. Typical implementation is to check plan's type (chain, build, job).
- Specified by:
isApplicableTo
in interface BuildConfigurationUIPlugin
- Parameters:
plan
- Plan to be verified
- Returns:
- true if particular configuration is applicable to input plan
populateContextForView
protected void populateContextForView(@NotNull
java.util.Map<java.lang.String,java.lang.Object> context,
@NotNull
Plan plan)
- Overrides:
populateContextForView
in class BaseBuildConfigurationAwarePlugin
transformBuildDefinition
public void transformBuildDefinition(@NotNull
java.util.Map<java.lang.String,java.lang.Object> configObjects,
@NotNull
java.util.Map<java.lang.String,java.lang.String> configParameters,
@NotNull
BuildDefinition buildDefinition)
- Description copied from interface:
CustomBuildDefinitionTransformer
- Implementors can add their custom objects to the configObjects map. The key should be unique to plugin... It's better
to be descriptive. It is possible to also update the buildDefinition directly, but it's not recommended.
- Specified by:
transformBuildDefinition
in interface CustomBuildDefinitionTransformer
- Parameters:
configObjects
- - Map - string key, object value. A map to put custom objects into. @NotNullconfigParameters
- - Map - String key, string value. These are taken from all fields that begin with "custom."buildDefinition
- - the fully constructed BuildDefinition
@NotNull
populateBuildDefinition
public void populateBuildDefinition(@NotNull
Plan plan,
@NotNull
java.util.Map<java.lang.String,java.lang.Object> configObjects,
@NotNull
BuildDefinition buildDefinition)
- For Jobs it adds AutomaticDependencyManagementConfig object from a parent plan
- Specified by:
populateBuildDefinition
in interface CustomBuildDefinitionGenerator
- Parameters:
plan
- Plan
whose BuildDefinition
is being populatedconfigObjects
- - Map - string key, object value. A map to put custom objects into. @NotNullbuildDefinition
- - the fully constructed BuildDefinition
@NotNull
getConfig
@Nullable
public static AutomaticDependencyManagementConfig getConfig(@NotNull
Plan plan)
getConfig
@Nullable
public static AutomaticDependencyManagementConfig getConfig(@NotNull
BuildDefinition buildDefinition)
getDependencyProviderJobs
public java.util.List<Job> getDependencyProviderJobs(Chain chain)
- Return list of jobs configured with Maven2 builder for a given chain.
- Parameters:
chain
- Chain
whose jobs will be returned
- Returns:
- List of
Job
Copyright © 2010 Atlassian. All Rights Reserved.