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