|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.build.strategy.AbstractBuildStrategy
com.atlassian.bamboo.build.strategy.TriggeredBuildStrategy
public class TriggeredBuildStrategy
This class lets someone else decide if the build should be built. Could be human, could be a remote SCM trigger....
| Field Summary |
|---|
| Fields inherited from class com.atlassian.bamboo.build.strategy.AbstractBuildStrategy |
|---|
changeList |
| Constructor Summary | |
|---|---|
TriggeredBuildStrategy()
|
|
| Method Summary | |
|---|---|
void |
clearTrigger()
Remove any existing trigger settings |
Collection |
getChangeList()
Get the changes that have been detected |
String |
getDescription()
|
String |
getKey()
A lowercase string key to identify the build strategy |
String |
getName()
Returns the display name of the strategy |
void |
init()
Force a repository check when we are initialised just in case there have been checkins while the server was not available. |
boolean |
isTriggered()
Will we trigger a build next time we are asked |
boolean |
requiresBuild(Build build)
Has the build been triggered |
boolean |
requiresPreBuildClean()
No point! |
void |
triggerBuild()
Trigger a build next time we're asked |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Takes in a BuildConfiguration and returns any errors possible |
| Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractBuildStrategy |
|---|
addDefaultValues, getBuildMessage, init, log, populateChangeList, populateFromConfig, setBuildMessage, toConfiguration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TriggeredBuildStrategy()
| Method Detail |
|---|
public void init()
public String getKey()
BuildStrategy
public String getName()
BuildStrategy
public String getDescription()
getDescription in interface BuildStrategygetDescription in class AbstractBuildStrategypublic ErrorCollection validate(BuildConfiguration buildConfiguration)
BuildStrategyBuildConfiguration and returns any errors possible
validate in interface BuildStrategyvalidate in class AbstractBuildStrategybuildConfiguration - not null
ErrorCollection. must not be null
public boolean requiresBuild(Build build)
throws RepositoryException
build - The build
RepositoryExceptionpublic boolean requiresPreBuildClean()
public Collection getChangeList()
getChangeList in interface BuildStrategygetChangeList in class AbstractBuildStrategypublic void triggerBuild()
public void clearTrigger()
public boolean isTriggered()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||