public class PlansGreenCondition extends BaseBuildConfigurationAwarePlugin implements BuildTriggerCondition
BuildTriggerCondition.ExecutionPreference
moduleDescriptor, templateRenderer
Constructor and Description |
---|
PlansGreenCondition() |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getConfigurationMap(org.apache.commons.configuration.HierarchicalConfiguration configuration)
This method should extract entire configuration of this plugin from
HierarchicalConfiguration and
return it as map. |
BuildTriggerCondition.ExecutionPreference |
getExecutionPreference(ImmutablePlan plan,
Map<String,String> configuration)
Use to indicate preference for whether this plugin things the plan should execute.
|
protected void |
populateContextForView(Map<String,Object> context,
Plan plan) |
void |
setPlanManager(PlanManager planManager) |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the
BuildConfiguration object. |
addDefaultValues, getEditHtml, getViewHtml, init, populateContextForEdit, prepareConfigObject, setTemplateRenderer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addDefaultValues, isConfigurationMissing, prepareConfigObject
init
getEditHtml, getViewHtml
@NotNull public Map<String,String> getConfigurationMap(@NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration)
BuildTriggerCondition
HierarchicalConfiguration
and
return it as map.getConfigurationMap
in interface BuildTriggerCondition
configuration
- a configuration@NotNull public BuildTriggerCondition.ExecutionPreference getExecutionPreference(ImmutablePlan plan, Map<String,String> configuration)
BuildTriggerCondition
getExecutionPreference
in interface BuildTriggerCondition
plan
- the plan that will be executedconfiguration
- of the plugin as returned by BuildTriggerCondition.getConfigurationMap(HierarchicalConfiguration)
protected void populateContextForView(@NotNull Map<String,Object> context, @NotNull Plan plan)
populateContextForView
in class BaseBuildConfigurationAwarePlugin
@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.public void setPlanManager(PlanManager planManager)
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.