public class BuildMonitoringPerPlanPlugin extends BaseConfigurablePlugin implements CustomBuildProcessorServer
moduleDescriptor, templateRenderer
Constructor and Description |
---|
BuildMonitoringPerPlanPlugin() |
Modifier and Type | Method and Description |
---|---|
@NotNull BuildContext |
call()
Execute the build task.
|
@NotNull Set<String> |
getConfigurationKeys() |
void |
init(@NotNull BuildContext buildContext) |
boolean |
isConfigurationMissing(@NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration)
Checks if HierarchicalConfiguration objects contains plugin's configuration values.
|
protected void |
populateContextForView(@NotNull Map<String,Object> context,
@NotNull Plan plan) |
void |
setTextProvider(com.opensymphony.xwork2.TextProvider textProvider) |
@NotNull ErrorCollection |
validate(@NotNull BuildConfiguration buildConfiguration)
Validates the properties in the
BuildConfiguration object. |
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, populateContextForEdit, prepareConfigObject, setTemplateRenderer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDefaultValues, prepareConfigObject
init
getEditHtml, getViewHtml
@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull BuildConfiguration buildConfiguration)
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
buildConfiguration
- -ErrorCollection
keyed by the field name.protected void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull Plan plan)
populateContextForView
in class BaseBuildConfigurationAwarePlugin
public void init(@NotNull @NotNull BuildContext buildContext)
@NotNull public @NotNull 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 boolean isConfigurationMissing(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration)
BuildConfigurationAwarePlugin
isConfigurationMissing
in interface BuildConfigurationAwarePlugin
configuration
- HierarchicalConfiguration objectpublic void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.