com.atlassian.bamboo.builder.coverage
Class CloverBuildProcessor

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
      extended by com.atlassian.bamboo.v2.build.BaseConfigurableBuildPlugin
          extended by com.atlassian.bamboo.builder.coverage.CloverBuildProcessor
All Implemented Interfaces:
CustomBuildProcessor, InitablePluginModule, BambooPluginModule, ConfigurablePlugin, AgentBuildTask, BuildTask, java.util.concurrent.Callable<BuildContext>

public class CloverBuildProcessor
extends BaseConfigurableBuildPlugin
implements CustomBuildProcessor


Field Summary
static java.lang.String CLOVER_BUILD_COVERAGE
           
static java.lang.String CLOVER_COVERAGE_DELTA
           
static java.lang.String CLOVER_EXISTS
           
static java.lang.String CLOVER_HAS_GLOBAL_LICENSE
           
static java.lang.String CLOVER_HAS_VALID_GLOBAL_LICENSE
           
static java.lang.String CLOVER_HISTORICAL
           
static java.lang.String CLOVER_INTEGRATION
          The key for the integration types.
static java.lang.String CLOVER_INTEGRATION_AUTO
           
static java.lang.String CLOVER_INTEGRATION_CUSTOM
           
static java.lang.String CLOVER_JSON
           
static java.lang.String CLOVER_LICENSE
          The contents of the user's clover.license
static java.lang.String CLOVER_LICENSE_USE_LOCAL_LICENSE_KEY
           
static java.lang.String CLOVER_NCLOC
           
static java.lang.String CLOVER_OPTIMIZE
           
static java.lang.String CLOVER_REPORT_ARTIFACT_LABEL
           
static java.lang.String CLOVER_REPORT_ARTIFACT_PREFIX
           
 
Fields inherited from class com.atlassian.bamboo.v2.build.BaseConfigurableBuildPlugin
buildContext
 
Fields inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
moduleDescriptor, templateRenderer
 
Constructor Summary
CloverBuildProcessor()
           
 
Method Summary
 void addDefaultValues(BuildConfiguration buildConfiguration)
          Extension point for adding default values to the form for ConfigurablePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
 BuildContext call()
          Execute the build task.
 void customizeBuildRequirements(BuildConfiguration buildConfiguration, RequirementSet requirementSet)
          Extension point for adding/customizing requirements when editing a build's builder configuration.
protected  void populateContextForEdit(java.util.Map<java.lang.String,java.lang.Object> context, BuildConfiguration buildConfiguration, Plan build)
           
protected  void populateContextForView(java.util.Map<java.lang.String,java.lang.Object> context, Plan build)
           
 void removeBuildRequirements(BuildConfiguration buildConfiguration, RequirementSet requirementSet)
          Extension point for removing requirements when given plugin is excluded from build's builder configuration.
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 ErrorCollection validate(BuildConfiguration configuration)
          Validates the properties in the BuildConfiguration object.
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurableBuildPlugin
init, setTemplateRenderer
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
getEditHtml, getViewHtml, init, prepareConfigObject
 
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.task.BuildTask
init
 

Field Detail

CLOVER_EXISTS

public static final java.lang.String CLOVER_EXISTS
See Also:
Constant Field Values

CLOVER_INTEGRATION

public static final java.lang.String CLOVER_INTEGRATION
The key for the integration types. Either exists or auto.

See Also:
Constant Field Values

CLOVER_INTEGRATION_CUSTOM

public static final java.lang.String CLOVER_INTEGRATION_CUSTOM
See Also:
Constant Field Values

CLOVER_INTEGRATION_AUTO

public static final java.lang.String CLOVER_INTEGRATION_AUTO
See Also:
Constant Field Values

CLOVER_LICENSE

public static final java.lang.String CLOVER_LICENSE
The contents of the user's clover.license

See Also:
Constant Field Values

CLOVER_LICENSE_USE_LOCAL_LICENSE_KEY

public static final java.lang.String CLOVER_LICENSE_USE_LOCAL_LICENSE_KEY
See Also:
Constant Field Values

CLOVER_JSON

public static final java.lang.String CLOVER_JSON
See Also:
Constant Field Values

CLOVER_HISTORICAL

public static final java.lang.String CLOVER_HISTORICAL
See Also:
Constant Field Values

CLOVER_OPTIMIZE

public static final java.lang.String CLOVER_OPTIMIZE
See Also:
Constant Field Values

CLOVER_BUILD_COVERAGE

public static final java.lang.String CLOVER_BUILD_COVERAGE
See Also:
Constant Field Values

CLOVER_COVERAGE_DELTA

public static final java.lang.String CLOVER_COVERAGE_DELTA
See Also:
Constant Field Values

CLOVER_NCLOC

public static final java.lang.String CLOVER_NCLOC
See Also:
Constant Field Values

CLOVER_REPORT_ARTIFACT_PREFIX

public static final java.lang.String CLOVER_REPORT_ARTIFACT_PREFIX
See Also:
Constant Field Values

CLOVER_REPORT_ARTIFACT_LABEL

public static final java.lang.String CLOVER_REPORT_ARTIFACT_LABEL
See Also:
Constant Field Values

CLOVER_HAS_GLOBAL_LICENSE

public static final java.lang.String CLOVER_HAS_GLOBAL_LICENSE
See Also:
Constant Field Values

CLOVER_HAS_VALID_GLOBAL_LICENSE

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

CloverBuildProcessor

public CloverBuildProcessor()
Method Detail

call

@NotNull
public BuildContext call()
                  throws java.lang.Exception
Description copied from interface: BuildTask

Execute the build task.

Implementations should regularly check if the calling Thread has been interrupted.

Specified by:
call in interface BuildTask
Specified by:
call in interface java.util.concurrent.Callable<BuildContext>
Throws:
java.lang.InterruptedException - if the calling Thread has been interrupted.
java.lang.Exception - A general exception that will be handled.

addDefaultValues

public void addDefaultValues(@NotNull
                             BuildConfiguration buildConfiguration)
Description copied from interface: ConfigurablePlugin
Extension point for adding default values to the form for ConfigurablePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)

Specified by:
addDefaultValues in interface ConfigurablePlugin
Overrides:
addDefaultValues in class BaseConfigurablePlugin
Parameters:
buildConfiguration - - @NotNull

customizeBuildRequirements

public void customizeBuildRequirements(@NotNull
                                       BuildConfiguration buildConfiguration,
                                       @NotNull
                                       RequirementSet requirementSet)
Description copied from interface: ConfigurablePlugin
Extension point for adding/customizing requirements when editing a build's builder configuration.

Specified by:
customizeBuildRequirements in interface ConfigurablePlugin
Overrides:
customizeBuildRequirements in class BaseConfigurablePlugin
Parameters:
buildConfiguration - source of information for customizing build requirements
requirementSet - requirements to be customized

removeBuildRequirements

public void removeBuildRequirements(@NotNull
                                    BuildConfiguration buildConfiguration,
                                    @NotNull
                                    RequirementSet requirementSet)
Description copied from interface: ConfigurablePlugin
Extension point for removing requirements when given plugin is excluded from build's builder configuration.

Specified by:
removeBuildRequirements in interface ConfigurablePlugin
Overrides:
removeBuildRequirements in class BaseConfigurablePlugin
Parameters:
buildConfiguration - source of information for customizing build requirements
requirementSet - requirements to be customized

validate

@NotNull
public ErrorCollection validate(@NotNull
                                        BuildConfiguration configuration)
Description copied from interface: ConfigurablePlugin
Validates the properties in the BuildConfiguration object. The name of the properties match those passed in through the form fragments in ConfigurablePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) template.

Specified by:
validate in interface ConfigurablePlugin
Overrides:
validate in class BaseConfigurablePlugin
Parameters:
configuration - - @NotNull
Returns:
ErrorCollection keyed by the field name. @NotNull

populateContextForView

protected void populateContextForView(@NotNull
                                      java.util.Map<java.lang.String,java.lang.Object> context,
                                      @NotNull
                                      Plan build)
Overrides:
populateContextForView in class BaseConfigurablePlugin

populateContextForEdit

protected void populateContextForEdit(@NotNull
                                      java.util.Map<java.lang.String,java.lang.Object> context,
                                      @NotNull
                                      BuildConfiguration buildConfiguration,
                                      @NotNull
                                      Plan build)
Overrides:
populateContextForEdit in class BaseConfigurablePlugin

setBandanaManager

public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)


Copyright © 2010 Atlassian. All Rights Reserved.