Class BuildMonitoringPerPlanPlugin
- java.lang.Object
-
- com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
-
- com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
-
- com.atlassian.bamboo.build.monitoring.BuildMonitoringPerPlanPlugin
-
- All Implemented Interfaces:
CustomBuildProcessorServer
,InitablePluginModule
,BambooPluginModule
,BuildConfigurationAwarePlugin
,ConfigurablePlugin
,RenderableBuildConfiguration
,BuildTask
,HibernateBuildTask
,Callable<BuildContext>
public class BuildMonitoringPerPlanPlugin extends BaseConfigurablePlugin implements CustomBuildProcessorServer
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor, templateRenderer
-
-
Constructor Summary
Constructors Constructor Description BuildMonitoringPerPlanPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theBuildConfiguration
object.-
Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
-
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getTemplateRenderer, getViewHtml, init, populateContextForEdit, prepareConfigObject, setTemplateRenderer
-
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, prepareConfigObject
-
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
-
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getEditHtml, getViewHtml
-
-
-
-
Method Detail
-
validate
@NotNull public @NotNull ErrorCollection validate(@NotNull @NotNull BuildConfiguration buildConfiguration)
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:
buildConfiguration
- -- Returns:
ErrorCollection
keyed by the field name.
-
populateContextForView
protected void populateContextForView(@NotNull @NotNull Map<String,Object> context, @NotNull @NotNull Plan plan)
- Overrides:
populateContextForView
in classBaseBuildConfigurationAwarePlugin
-
init
public void init(@NotNull @NotNull BuildContext buildContext)
-
call
@NotNull public @NotNull BuildContext call() throws Exception
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.
-
isConfigurationMissing
public boolean isConfigurationMissing(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration)
Description copied from interface:BuildConfigurationAwarePlugin
Checks if HierarchicalConfiguration objects contains plugin's configuration values. Should return true if call to addDefaultValues() is necessary to initialize HierarchicalConfiguration.- Specified by:
isConfigurationMissing
in interfaceBuildConfigurationAwarePlugin
- Parameters:
configuration
- HierarchicalConfiguration object- Returns:
- true if configuration is not present in HierarchicalConfiguration and should be set to defaults
-
setTextProvider
public void setTextProvider(com.opensymphony.xwork2.TextProvider textProvider)
-
-