public class CloverBuildProcessor extends BaseConfigurableBuildPlugin implements CustomBuildProcessor
buildContext
moduleDescriptor, templateRenderer
Constructor and Description |
---|
CloverBuildProcessor() |
Modifier and Type | Method and Description |
---|---|
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.
|
Set<String> |
getConfigurationKeys() |
protected void |
populateContextForEdit(Map<String,Object> context,
BuildConfiguration buildConfiguration,
Plan plan) |
protected void |
populateContextForView(Map<String,Object> context,
Plan build) |
void |
setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
void |
setPlanManager(PlanManager planManager)
Deprecated.
since 6.8 use constructor injection or annotation injection
|
ErrorCollection |
validate(BuildConfiguration configuration)
Validates the properties in the
BuildConfiguration object. |
init, setTemplateRenderer
removeBuildRequirements
getEditHtml, getViewHtml, init, prepareConfigObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isConfigurationMissing, prepareConfigObject
init
getEditHtml, getViewHtml
public static final String CLOVER_EXISTS
public static final String CLOVER_INTEGRATION
public static final String CLOVER_INTEGRATION_CUSTOM
public static final String CLOVER_INTEGRATION_AUTO
public static final String CLOVER_LICENSE
public static final String CLOVER_LICENSE_USE_LOCAL_LICENSE_KEY
public static final String CLOVER_JSON
public static final String CLOVER_HISTORICAL
public static final String CLOVER_OPTIMIZE
public static final String CLOVER_BUILD_COVERAGE
public static final String CLOVER_COVERAGE_DELTA
public static final String CLOVER_ELEMENTS
public static final String CLOVER_COVERED_ELEMENTS
public static final String CLOVER_PACKAGES
public static final String CLOVER_CONDITIONALS
public static final String CLOVER_COVERED_CONDITIONALS
public static final String CLOVER_LOC
public static final String CLOVER_NCLOC
public static final String CLOVER_STATEMENTS
public static final String CLOVER_COVERED_STATEMENTS
public static final String CLOVER_FILES
public static final String CLOVER_METHODS
public static final String CLOVER_COVERED_METHODS
public static final String CLOVER_CLASSES
public static final String CLOVER_REPORT_ARTIFACT_PREFIX
public static final String CLOVER_REPORT_ARTIFACT_LABEL
public static final String CLOVER_HAS_GLOBAL_LICENSE
public static final String CLOVER_HAS_VALID_GLOBAL_LICENSE
public static final String CLOVER_HAS_LOCAL_LICENSE
@NotNull public BuildContext call() throws Exception
BuildTask
Execute the build task.
Implementations should regularly check if the calling Thread
has been interrupted.
call
in interface BuildTask
call
in interface Callable<BuildContext>
InterruptedException
- if the calling Thread
has been interrupted.Exception
- A general exception that will be handled.public void addDefaultValues(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
addDefaultValues
in interface BuildConfigurationAwarePlugin
addDefaultValues
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- -public void customizeBuildRequirements(@NotNull PlanKey planKey, @NotNull BuildConfiguration buildConfiguration, @NotNull RequirementSet requirementSet)
customizeBuildRequirements
in interface ConfigurablePlugin
customizeBuildRequirements
in class BaseConfigurablePlugin
planKey
- key of Plan
for which requirements has to be removed.buildConfiguration
- source of information for customizing build requirementsrequirementSet
- requirements to be customized@NotNull public ErrorCollection validate(@NotNull BuildConfiguration configuration)
BuildConfigurationAwarePlugin
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.validate
in interface BuildConfigurationAwarePlugin
validate
in class BaseBuildConfigurationAwarePlugin
configuration
- -ErrorCollection
keyed by the field name.protected void populateContextForView(@NotNull Map<String,Object> context, @NotNull Plan build)
populateContextForView
in class BaseBuildConfigurationAwarePlugin
protected void populateContextForEdit(@NotNull Map<String,Object> context, @NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
populateContextForEdit
in class BaseBuildConfigurationAwarePlugin
@Deprecated public void setArtifactDefinitionManager(ArtifactDefinitionManager artifactDefinitionManager)
@Deprecated public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
@Deprecated public void setPlanManager(PlanManager planManager)
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.