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 String
CLOVER_BUILD_COVERAGE
static String
CLOVER_CLASSES
static String
CLOVER_CONDITIONALS
static String
CLOVER_COVERAGE_DELTA
static String
CLOVER_COVERED_CONDITIONALS
static String
CLOVER_COVERED_ELEMENTS
static String
CLOVER_COVERED_METHODS
static String
CLOVER_COVERED_STATEMENTS
static String
CLOVER_ELEMENTS
static String
CLOVER_EXISTS
static String
CLOVER_FILES
static String
CLOVER_HAS_GLOBAL_LICENSE
static String
CLOVER_HAS_VALID_GLOBAL_LICENSE
static String
CLOVER_LOC
static String
CLOVER_METHODS
static String
CLOVER_NCLOC
static String
CLOVER_PACKAGES
static String
CLOVER_REPORT_ARTIFACT_LABEL
static String
CLOVER_REPORT_ARTIFACT_PREFIX
static String
CLOVER_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 BuildContext
call()
Execute the build task.void
customizeBuildRequirements(@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 void
populateContextForEdit(@NotNull Map<String,Object> context, @NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
protected void
populateContextForView(@NotNull Map<String,Object> context, @NotNull Plan build)
void
setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)
Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated.since 6.8 use constructor injection or annotation injectionvoid
setPlanManager(PlanManager planManager)
Deprecated.since 6.8 use constructor injection or annotation injection@NotNull ErrorCollection
validate(@NotNull BuildConfiguration configuration)
Validates the properties in theBuildConfiguration
object.-
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:BuildTask
Execute the build task.
Implementations should regularly check if the calling
Thread
has been interrupted.- Specified by:
call
in interfaceBuildTask
- Specified by:
call
in interfaceCallable<BuildContext>
- Throws:
InterruptedException
- if the callingThread
has 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:
customizeBuildRequirements
in interfaceConfigurablePlugin
- Overrides:
customizeBuildRequirements
in classBaseConfigurablePlugin
- Parameters:
planKey
- key ofPlan
for 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:BuildConfigurationAwarePlugin
Validates the properties in theBuildConfiguration
object. 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:
validate
in interfaceBuildConfigurationAwarePlugin
- Overrides:
validate
in classBaseBuildConfigurationAwarePlugin
- Parameters:
configuration
- -- Returns:
ErrorCollection
keyed by the field name.
-
populateContextForView
protected void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull Plan build)
- Overrides:
populateContextForView
in classBaseBuildConfigurationAwarePlugin
-
populateContextForEdit
protected void populateContextForEdit(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull BuildConfiguration buildConfiguration, @Nullable @Nullable Plan plan)
- Overrides:
populateContextForEdit
in 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
-
-