public class

BuildExpiryPerPlanPlugin

extends BaseConfigurablePlugin
implements MiscellaneousBuildConfigurationPlugin
java.lang.Object
   ↳ com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
     ↳ com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
       ↳ com.atlassian.bamboo.build.expiry.plugin.BuildExpiryPerPlanPlugin

Class Overview

A plugin class that allows you to have build expiry occur per build

Summary

Constants
String BUILD_EXPIRY_CONFIG_CONSTANT
Fields
protected TextProvider textProvider
[Expand]
Inherited Fields
From class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
Public Constructors
BuildExpiryPerPlanPlugin()
Public Methods
boolean isApplicableTo(Plan plan)
Checks if the plugin is applicable to a plan.
void setTextProvider(TextProvider textProvider)
@NotNull ErrorCollection validate(BuildConfiguration config)
Validates the properties in the BuildConfiguration object.
Protected Methods
void populateContextForEdit(Map<StringObject> context, BuildConfiguration buildConfiguration, Plan plan)
void populateContextForView(Map<StringObject> context, Plan plan)
[Expand]
Inherited Methods
From class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
From class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
From class java.lang.Object
From interface com.atlassian.bamboo.plugin.InitablePluginModule
From interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
From interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
From interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
From interface com.atlassian.bamboo.v2.build.configuration.BuildConfigurationUIPlugin

Constants

public static final String BUILD_EXPIRY_CONFIG_CONSTANT

Constant Value: "buildExpiryConfig"

Fields

protected TextProvider textProvider

Public Constructors

public BuildExpiryPerPlanPlugin ()

Public Methods

public boolean isApplicableTo (Plan plan)

Checks if the plugin is applicable to a plan. Typical implementation is to check plan's type (chain, build, job).

Parameters
plan Plan to be verified
Returns
  • true if particular configuration is applicable to input plan

public void setTextProvider (TextProvider textProvider)

@NotNull public ErrorCollection validate (BuildConfiguration config)

Validates the properties in the BuildConfiguration object. The name of the properties match those passed in through the form fragments in getEditHtml(BuildConfiguration, Plan) template.

Parameters
config - @NotNull
Returns

Protected Methods

protected void populateContextForEdit (Map<StringObject> context, BuildConfiguration buildConfiguration, Plan plan)

protected void populateContextForView (Map<StringObject> context, Plan plan)