com.atlassian.bamboo.labels
Class AutoLabelBuildCompleteAction

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
      extended by com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
          extended by com.atlassian.bamboo.labels.AutoLabelBuildCompleteAction
All Implemented Interfaces:
CustomBuildCompleteAction, InitablePluginModule, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin

public class AutoLabelBuildCompleteAction
extends BaseConfigurablePlugin
implements CustomBuildCompleteAction


Field Summary
static java.lang.String AUTO_LABEL_KEY
           
 
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor, templateRenderer
 
Constructor Summary
AutoLabelBuildCompleteAction()
           
 
Method Summary
 LabelManager getLabelManager()
           
 void run(Buildable buildable, BuildResults buildResult)
          This action will run when a build completes.
 void setLabelManager(LabelManager labelManager)
           
 ErrorCollection validate(BuildConfiguration config)
          Validates the properties in the BuildConfiguration object.
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getViewHtml, init, isConfigurationMissing, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer
 
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, getEditHtml, getViewHtml, prepareConfigObject
 
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
 

Field Detail

AUTO_LABEL_KEY

public static final java.lang.String AUTO_LABEL_KEY
See Also:
Constant Field Values
Constructor Detail

AutoLabelBuildCompleteAction

public AutoLabelBuildCompleteAction()
Method Detail

run

public void run(@NotNull
                Buildable buildable,
                @NotNull
                BuildResults buildResult)
Description copied from interface: CustomBuildCompleteAction
This action will run when a build completes.

Specified by:
run in interface CustomBuildCompleteAction
Parameters:
buildable - - the Buildable plan object
buildResult - - the BuildResults object that holds information

validate

@NotNull
public ErrorCollection validate(@NotNull
                                        BuildConfiguration config)
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 BuildConfigurationAwarePlugin.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:
config - - @NotNull
Returns:
ErrorCollection keyed by the field name. @NotNull

getLabelManager

public LabelManager getLabelManager()

setLabelManager

public void setLabelManager(LabelManager labelManager)


Copyright © 2010 Atlassian. All Rights Reserved.