com.atlassian.bamboo.builder.coverage
Class CloverBuildProcessor

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
      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, BuildConfigurationAwarePlugin, ConfigurablePlugin, RenderableBuildConfiguration, 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_LOCAL_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.BaseBuildConfigurationAwarePlugin
moduleDescriptor, templateRenderer
 
Constructor Summary
CloverBuildProcessor()
           
 
Method Summary
 void addDefaultValues(BuildConfiguration buildConfiguration)
          Extension point for adding default values to the form for RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
 BuildContext call()
          Execute the build task.
 void customizeBuildRequirements(PlanKey planKey, BuildConfiguration buildConfiguration, RequirementSet requirementSet)
          This part is executed on server as a part of UI 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 setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)
           
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 void setPlanManager(PlanManager planManager)
           
 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
customizeBuildRequirements, removeBuildRequirements, removeBuildRequirements
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
getEditHtml, getViewHtml, init, isConfigurationMissing, 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
 
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
prepareConfigObject
 
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
 
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtml
 

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

CLOVER_HAS_LOCAL_LICENSE

public static final java.lang.String CLOVER_HAS_LOCAL_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: BuildConfigurationAwarePlugin
Extension point for adding default values to the form for RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)

Specified by:
addDefaultValues in interface BuildConfigurationAwarePlugin
Overrides:
addDefaultValues in class BaseBuildConfigurationAwarePlugin
Parameters:
buildConfiguration - - @NotNull

customizeBuildRequirements

public void customizeBuildRequirements(@NotNull
                                       PlanKey planKey,
                                       @NotNull
                                       BuildConfiguration buildConfiguration,
                                       @NotNull
                                       RequirementSet requirementSet)
This part is executed on server as a part of UI configuration.

Specified by:
customizeBuildRequirements in interface ConfigurablePlugin
Overrides:
customizeBuildRequirements in class BaseConfigurablePlugin
Parameters:
buildConfiguration -
requirementSet -
planKey - key of Plan for which requirements has to be removed.

validate

@NotNull
public ErrorCollection validate(@NotNull
                                        BuildConfiguration configuration)
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:
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 BaseBuildConfigurationAwarePlugin

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 BaseBuildConfigurationAwarePlugin

setArtifactDefinitionManager

public void setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)

setBandanaManager

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

setPlanManager

public void setPlanManager(PlanManager planManager)


Copyright © 2011 Atlassian. All Rights Reserved.