com.atlassian.bamboo.plugins.labeller
Class BuildLabeller

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
      extended by com.atlassian.bamboo.plugins.labeller.BuildLabeller
All Implemented Interfaces:
CustomBuildCompleteAction, BambooPluginModule, ConfigurablePlugin

public class BuildLabeller
extends BaseConfigurablePlugin
implements CustomBuildCompleteAction


Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
moduleDescriptor, templateRenderer
 
Constructor Summary
BuildLabeller()
           
 
Method Summary
protected  BuildLogFileAccessor getBuildLogFileAccessor(java.lang.String planKey, int buildNumber)
           
 LabelManager getLabelManager()
           
 void run(Build build, BuildResults buildResults)
          This action will run after a build has completed.
 void setBuildLogFileAccessorFactory(BuildLogFileAccessorFactory buildLogFileAccessorFactory)
           
 void setLabelManager(LabelManager labelManager)
           
 void setVariableSubstitutionBean(VariableSubstitutionBean variableSubstitutionBean)
           
 ErrorCollection validate(BuildConfiguration buildConfiguration)
          This method is used to validate a build configuration for a build plan

This is used if the CustomBuildCompleteAction needs to have configuration stored against the build plan.

 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
addDefaultValues, customizeBuildRequirements, getEditHtml, getViewHtml, init, populateContextForEdit, populateContextForView, prepareConfigObject, setTemplateRenderer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildLabeller

public BuildLabeller()
Method Detail

run

public void run(@NotNull
                Build build,
                @NotNull
                BuildResults buildResults)
This action will run after a build has completed.

The build will be tagged with a specified set of labels if the logs matches the specified regex pattern.

Specified by:
run in interface CustomBuildCompleteAction
Parameters:
build - Build information
buildResults - Build results

validate

@NotNull
public ErrorCollection validate(@NotNull
                                        BuildConfiguration buildConfiguration)
This method is used to validate a build configuration for a build plan

This is used if the CustomBuildCompleteAction needs to have configuration stored against the build plan.

Specified by:
validate in interface ConfigurablePlugin
Overrides:
validate in class BaseConfigurablePlugin
Parameters:
buildConfiguration - Build configuration object
Returns:
Collections of errors found during validation

getLabelManager

public LabelManager getLabelManager()

setLabelManager

public void setLabelManager(LabelManager labelManager)

getBuildLogFileAccessor

protected BuildLogFileAccessor getBuildLogFileAccessor(java.lang.String planKey,
                                                       int buildNumber)

setBuildLogFileAccessorFactory

public void setBuildLogFileAccessorFactory(BuildLogFileAccessorFactory buildLogFileAccessorFactory)

setVariableSubstitutionBean

public void setVariableSubstitutionBean(VariableSubstitutionBean variableSubstitutionBean)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.