com.atlassian.bamboo.build.expiry.plugin
Class BuildExpiryPerPlanPlugin
java.lang.Object
com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
com.atlassian.bamboo.build.expiry.plugin.BuildExpiryPerPlanPlugin
- All Implemented Interfaces:
- InitablePluginModule, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, BuildConfigurationUIPlugin, MiscellaneousBuildConfigurationPlugin, RenderableBuildConfiguration
public class BuildExpiryPerPlanPlugin
- extends BaseConfigurablePlugin
- implements MiscellaneousBuildConfigurationPlugin
A plugin class that allows you to have build expiry occur per build
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUILD_EXPIRY_CONFIG_CONSTANT
public static final java.lang.String BUILD_EXPIRY_CONFIG_CONSTANT
- See Also:
- Constant Field Values
BuildExpiryPerPlanPlugin
public BuildExpiryPerPlanPlugin()
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
validate
@NotNull
public ErrorCollection validate(@NotNull
BuildConfiguration buildConfiguration)
- Description copied from interface:
BuildConfigurationAwarePlugin
- Validates the properties in the
BuildConfiguration
object. The name of the properties match those passed
in through the form fragments in RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
template.
- Specified by:
validate
in interface BuildConfigurationAwarePlugin
- Overrides:
validate
in class BaseBuildConfigurationAwarePlugin
- Parameters:
buildConfiguration
- - @NotNull
- Returns:
ErrorCollection
keyed by the field name. @NotNull
populateContextForEdit
protected void populateContextForEdit(@NotNull
java.util.Map<java.lang.String,java.lang.Object> context,
@NotNull
BuildConfiguration buildConfiguration,
@Nullable
Plan plan)
- Overrides:
populateContextForEdit
in class BaseBuildConfigurationAwarePlugin
populateContextForView
protected void populateContextForView(@NotNull
java.util.Map<java.lang.String,java.lang.Object> context,
@NotNull
Plan plan)
- Overrides:
populateContextForView
in class BaseBuildConfigurationAwarePlugin
setTextProvider
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
setFeatureManager
public void setFeatureManager(FeatureManager featureManager)
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.