com.atlassian.bamboo.buildtrigger
Class PlansGreenCondition

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
      extended by com.atlassian.bamboo.buildtrigger.PlansGreenCondition
All Implemented Interfaces:
BuildTriggerCondition, InitablePluginModule, BambooPluginModule, BuildConfigurationAwarePlugin, RenderableBuildConfiguration

public class PlansGreenCondition
extends BaseBuildConfigurationAwarePlugin
implements BuildTriggerCondition


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.bamboo.build.BuildTriggerCondition
BuildTriggerCondition.ExecutionPreference
 
Field Summary
 
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor, templateRenderer
 
Constructor Summary
PlansGreenCondition()
           
 
Method Summary
 BuildTriggerCondition.ExecutionPreference getExecutionPreference(ImmutablePlan plan)
          Use to indicate preference for whether this plugin things the plan should execute.
protected  void populateContextForView(java.util.Map<java.lang.String,java.lang.Object> context, Plan plan)
           
 void setPlanManager(PlanManager planManager)
           
 ErrorCollection validate(BuildConfiguration buildConfiguration)
          Validates the properties in the BuildConfiguration object.
 
Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
addDefaultValues, getEditHtml, getViewHtml, init, isConfigurationMissing, 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
 

Constructor Detail

PlansGreenCondition

public PlansGreenCondition()
Method Detail

getExecutionPreference

@NotNull
public BuildTriggerCondition.ExecutionPreference getExecutionPreference(ImmutablePlan plan)
Use to indicate preference for whether this plugin things the plan should execute. Whether the build actually will execute will follow the above order

Specified by:
getExecutionPreference in interface BuildTriggerCondition
Parameters:
plan - the plan that will be executed
Returns:
the execution preference of this plan, will be overridden if another plugin returns with a higher preference

populateContextForView

protected void populateContextForView(@NotNull
                                      java.util.Map<java.lang.String,java.lang.Object> context,
                                      @NotNull
                                      Plan plan)
Overrides:
populateContextForView in class BaseBuildConfigurationAwarePlugin

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 RenderableBuildConfiguration.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

setPlanManager

public void setPlanManager(PlanManager planManager)


Copyright © 2012 Atlassian. All Rights Reserved.