Class CloverBuildProcessor
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
-
- com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
-
- com.atlassian.bamboo.v2.build.BaseConfigurableBuildPlugin
-
- com.atlassian.bamboo.clover.builder.coverage.CloverBuildProcessor
-
- All Implemented Interfaces:
CustomBuildProcessor,InitablePluginModule,BambooPluginModule,BuildConfigurationAwarePlugin,ConfigurablePlugin,RenderableBuildConfiguration,AgentBuildTask,BuildTask,Callable<BuildContext>
public class CloverBuildProcessor extends BaseConfigurableBuildPlugin implements CustomBuildProcessor
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLOVER_BUILD_COVERAGEstatic StringCLOVER_CLASSESstatic StringCLOVER_CONDITIONALSstatic StringCLOVER_COVERAGE_DELTAstatic StringCLOVER_COVERED_CONDITIONALSstatic StringCLOVER_COVERED_ELEMENTSstatic StringCLOVER_COVERED_METHODSstatic StringCLOVER_COVERED_STATEMENTSstatic StringCLOVER_ELEMENTSstatic StringCLOVER_EXISTSstatic StringCLOVER_FILESstatic StringCLOVER_HAS_GLOBAL_LICENSEstatic StringCLOVER_HAS_VALID_GLOBAL_LICENSEstatic StringCLOVER_LOCstatic StringCLOVER_METHODSstatic StringCLOVER_NCLOCstatic StringCLOVER_PACKAGESstatic StringCLOVER_REPORT_ARTIFACT_LABELstatic StringCLOVER_REPORT_ARTIFACT_PREFIXstatic StringCLOVER_STATEMENTS-
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
Constructors Constructor Description CloverBuildProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull BuildContextcall()Execute the build task.voidcustomizeBuildRequirements(@NotNull PlanKey planKey, @NotNull BuildConfiguration buildConfiguration, @NotNull RequirementSet requirementSet)This part is executed on server as a part of UI configuration.@NotNull Set<String>getConfigurationKeys()protected voidpopulateContextForEdit(@NotNull Map<String,Object> context, @NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)protected voidpopulateContextForView(@NotNull Map<String,Object> context, @NotNull Plan build)voidsetArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)Deprecated.since 6.8 use constructor injection or annotation injectionvoidsetPlanManager(PlanManager planManager)Deprecated.since 6.8 use constructor injection or annotation injection@NotNull ErrorCollectionvalidate(@NotNull BuildConfiguration configuration)Validates the properties in theBuildConfigurationobject.-
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurableBuildPlugin
init, setTemplateRenderer
-
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
removeBuildRequirements
-
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getTemplateRenderer, 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.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, 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 String CLOVER_EXISTS
- See Also:
- Constant Field Values
-
CLOVER_BUILD_COVERAGE
public static final String CLOVER_BUILD_COVERAGE
- See Also:
- Constant Field Values
-
CLOVER_COVERAGE_DELTA
public static final String CLOVER_COVERAGE_DELTA
- See Also:
- Constant Field Values
-
CLOVER_ELEMENTS
public static final String CLOVER_ELEMENTS
- See Also:
- Constant Field Values
-
CLOVER_COVERED_ELEMENTS
public static final String CLOVER_COVERED_ELEMENTS
- See Also:
- Constant Field Values
-
CLOVER_PACKAGES
public static final String CLOVER_PACKAGES
- See Also:
- Constant Field Values
-
CLOVER_CONDITIONALS
public static final String CLOVER_CONDITIONALS
- See Also:
- Constant Field Values
-
CLOVER_COVERED_CONDITIONALS
public static final String CLOVER_COVERED_CONDITIONALS
- See Also:
- Constant Field Values
-
CLOVER_LOC
public static final String CLOVER_LOC
- See Also:
- Constant Field Values
-
CLOVER_NCLOC
public static final String CLOVER_NCLOC
- See Also:
- Constant Field Values
-
CLOVER_STATEMENTS
public static final String CLOVER_STATEMENTS
- See Also:
- Constant Field Values
-
CLOVER_COVERED_STATEMENTS
public static final String CLOVER_COVERED_STATEMENTS
- See Also:
- Constant Field Values
-
CLOVER_FILES
public static final String CLOVER_FILES
- See Also:
- Constant Field Values
-
CLOVER_METHODS
public static final String CLOVER_METHODS
- See Also:
- Constant Field Values
-
CLOVER_COVERED_METHODS
public static final String CLOVER_COVERED_METHODS
- See Also:
- Constant Field Values
-
CLOVER_CLASSES
public static final String CLOVER_CLASSES
- See Also:
- Constant Field Values
-
CLOVER_REPORT_ARTIFACT_PREFIX
public static final String CLOVER_REPORT_ARTIFACT_PREFIX
- See Also:
- Constant Field Values
-
CLOVER_REPORT_ARTIFACT_LABEL
public static final String CLOVER_REPORT_ARTIFACT_LABEL
- See Also:
- Constant Field Values
-
CLOVER_HAS_GLOBAL_LICENSE
public static final String CLOVER_HAS_GLOBAL_LICENSE
- See Also:
- Constant Field Values
-
CLOVER_HAS_VALID_GLOBAL_LICENSE
public static final String CLOVER_HAS_VALID_GLOBAL_LICENSE
- See Also:
- Constant Field Values
-
-
Method Detail
-
call
@NotNull public @NotNull BuildContext call() throws Exception
Description copied from interface:BuildTaskExecute the build task.
Implementations should regularly check if the calling
Threadhas been interrupted.- Specified by:
callin interfaceBuildTask- Specified by:
callin interfaceCallable<BuildContext>- Throws:
InterruptedException- if the callingThreadhas been interrupted.Exception- A general exception that will be handled.
-
customizeBuildRequirements
public void customizeBuildRequirements(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull BuildConfiguration buildConfiguration, @NotNull @NotNull RequirementSet requirementSet)This part is executed on server as a part of UI configuration.- Specified by:
customizeBuildRequirementsin interfaceConfigurablePlugin- Overrides:
customizeBuildRequirementsin classBaseConfigurablePlugin- Parameters:
planKey- key ofPlanfor which requirements has to be removed.buildConfiguration- source of information for customizing build requirementsrequirementSet- requirements to be customized
-
validate
@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull BuildConfiguration configuration)
Description copied from interface:BuildConfigurationAwarePluginValidates the properties in theBuildConfigurationobject. The name of the properties match those passed in through the form fragments inRenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)template.- Specified by:
validatein interfaceBuildConfigurationAwarePlugin- Overrides:
validatein classBaseBuildConfigurationAwarePlugin- Parameters:
configuration- -- Returns:
ErrorCollectionkeyed by the field name.
-
populateContextForView
protected void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull Plan build)- Overrides:
populateContextForViewin classBaseBuildConfigurationAwarePlugin
-
populateContextForEdit
protected void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull BuildConfiguration buildConfiguration, @Nullable @Nullable Plan plan)- Overrides:
populateContextForEditin classBaseBuildConfigurationAwarePlugin
-
setArtifactDefinitionManager
@Deprecated public void setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)
Deprecated.since 6.8 use constructor injection or annotation injection
-
setBandanaManager
@Deprecated public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated.since 6.8 use constructor injection or annotation injection
-
setPlanManager
@Deprecated public void setPlanManager(PlanManager planManager)
Deprecated.since 6.8 use constructor injection or annotation injection
-
-