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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
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
-
Method Summary
Modifier and TypeMethodDescription@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.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 Details
-
CLOVER_EXISTS
- See Also:
-
CLOVER_BUILD_COVERAGE
- See Also:
-
CLOVER_COVERAGE_DELTA
- See Also:
-
CLOVER_ELEMENTS
- See Also:
-
CLOVER_COVERED_ELEMENTS
- See Also:
-
CLOVER_PACKAGES
- See Also:
-
CLOVER_CONDITIONALS
- See Also:
-
CLOVER_COVERED_CONDITIONALS
- See Also:
-
CLOVER_LOC
- See Also:
-
CLOVER_NCLOC
- See Also:
-
CLOVER_STATEMENTS
- See Also:
-
CLOVER_COVERED_STATEMENTS
- See Also:
-
CLOVER_FILES
- See Also:
-
CLOVER_METHODS
- See Also:
-
CLOVER_COVERED_METHODS
- See Also:
-
CLOVER_CLASSES
- See Also:
-
CLOVER_REPORT_ARTIFACT_PREFIX
- See Also:
-
CLOVER_REPORT_ARTIFACT_LABEL
- See Also:
-
CLOVER_HAS_GLOBAL_LICENSE
- See Also:
-
CLOVER_HAS_VALID_GLOBAL_LICENSE
- See Also:
-
-
Constructor Details
-
CloverBuildProcessor
public CloverBuildProcessor()
-
-
Method Details
-
call
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.
-
getConfigurationKeys
-
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.since 6.8 use constructor injection or annotation injection -
setPlanManager
Deprecated.since 6.8 use constructor injection or annotation injection
-