com.atlassian.bamboo.build.strategy
Class TriggeredBuildStrategy

java.lang.Object
  extended by com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
      extended by com.atlassian.bamboo.build.strategy.TriggeredBuildStrategy
All Implemented Interfaces:
BuildStrategy, ConvertibleFromConfig, java.io.Serializable

public class TriggeredBuildStrategy
extends AbstractBuildStrategy

This class lets someone else decide if the build should be built. Could be human, could be a remote SCM trigger....

Author:
Andy and Nick
See Also:
Serialized Form

Constructor Summary
TriggeredBuildStrategy()
           
 
Method Summary
 java.lang.String getDescription()
           
 java.lang.String getKey()
          A lowercase string key to identify the build strategy
 java.lang.String getName()
          Returns the display name of the strategy
 void init(Plan plan)
          Default to do nothing
 void setEventManager(com.atlassian.event.EventManager eventManager)
           
 ErrorCollection validate(BuildConfiguration buildConfiguration)
          Takes in a BuildConfiguration and returns any errors possible
 
Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
addDefaultValues, populateFromConfig, toConfiguration
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriggeredBuildStrategy

public TriggeredBuildStrategy()
Method Detail

init

public void init(Plan plan)
Description copied from class: AbstractBuildStrategy
Default to do nothing

Specified by:
init in interface BuildStrategy
Overrides:
init in class AbstractBuildStrategy

getKey

public java.lang.String getKey()
Description copied from interface: BuildStrategy
A lowercase string key to identify the build strategy

Returns:
String must not be null

getName

public java.lang.String getName()
Description copied from interface: BuildStrategy
Returns the display name of the strategy

Returns:
String must not be null

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface BuildStrategy
Overrides:
getDescription in class AbstractBuildStrategy

validate

public ErrorCollection validate(BuildConfiguration buildConfiguration)
Description copied from interface: BuildStrategy
Takes in a BuildConfiguration and returns any errors possible

Specified by:
validate in interface BuildStrategy
Overrides:
validate in class AbstractBuildStrategy
Parameters:
buildConfiguration - not null
Returns:
ErrorCollection. must not be null

setEventManager

public void setEventManager(com.atlassian.event.EventManager eventManager)


Copyright © 2010 Atlassian. All Rights Reserved.