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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class com.atlassian.bamboo.v2.build.BaseConfigurableBuildPlugin
buildContextFields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor, templateRenderer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@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.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, setTemplateRendererMethods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
removeBuildRequirementsMethods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, prepareConfigObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, prepareConfigObjectMethods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
initMethods 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:BuildTaskExecute the build task.
Implementations should regularly check if the calling
Threadhas been interrupted. -
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.
-
getConfigurationKeys
-
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.since 6.8 use constructor injection or annotation injection -
setPlanManager
Deprecated.since 6.8 use constructor injection or annotation injection
-