com.atlassian.bamboo.build.monitoring
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, CustomBuildDefinitionTransformer, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, BuildTask, java.util.concurrent.Callable<BuildContext>
public class BuildMonitoringPerPlanPlugin
- extends BaseConfigurablePlugin
- implements CustomBuildDefinitionTransformer, CustomBuildProcessorServer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildMonitoringPerPlanPlugin
public BuildMonitoringPerPlanPlugin()
validate
@NotNull
public ErrorCollection validate(@NotNull
BuildConfiguration buildConfiguration)
- Description copied from interface:
BuildConfigurationAwarePlugin
- Validates the properties in the
BuildConfiguration
object. The name of the properties match those passed
in through the form fragments in BuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
template.
- Specified by:
validate
in interface BuildConfigurationAwarePlugin
- Overrides:
validate
in class BaseBuildConfigurationAwarePlugin
- Parameters:
buildConfiguration
- - @NotNull
- Returns:
ErrorCollection
keyed by the field name. @NotNull
transformBuildDefinition
public void transformBuildDefinition(@NotNull
java.util.Map<java.lang.String,java.lang.Object> configObjects,
@NotNull
java.util.Map<java.lang.String,java.lang.String> configParameters,
@NotNull
BuildDefinition buildDefinition)
- Description copied from interface:
CustomBuildDefinitionTransformer
- Implementors can add their custom objects to the configObjects map. The key should be unique to plugin... It's better
to be descriptive. It is possible to also update the buildDefinition directly, but it's not recommended.
- Specified by:
transformBuildDefinition
in interface CustomBuildDefinitionTransformer
- Parameters:
configObjects
- - Map - string key, object value. A map to put custom objects into. @NotNullconfigParameters
- - Map - String key, string value. These are taken from all fields that begin with "custom."buildDefinition
- - the fully constructed BuildDefinition
@NotNull
populateContextForView
protected void populateContextForView(@NotNull
java.util.Map<java.lang.String,java.lang.Object> context,
@NotNull
Plan plan)
- Overrides:
populateContextForView
in class BaseBuildConfigurationAwarePlugin
init
public void init(@NotNull
BuildContext buildContext)
- Specified by:
init
in interface BuildTask
call
@NotNull
public BuildContext call()
throws java.lang.InterruptedException,
java.lang.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 interface BuildTask
- Specified by:
call
in interface java.util.concurrent.Callable<BuildContext>
- Throws:
java.lang.InterruptedException
- if the calling Thread
has been interrupted.
java.lang.Exception
- A general exception that will be handled.
setTextProvider
public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
Copyright © 2011 Atlassian. All Rights Reserved.