|
||||||||||
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 BuildStrategy
getDescription
in class AbstractBuildStrategy
public ErrorCollection validate(BuildConfiguration buildConfiguration)
BuildStrategy
BuildConfiguration
and returns any errors possible
validate
in interface BuildStrategy
validate
in class AbstractBuildStrategy
buildConfiguration
- not null
ErrorCollection
. must not be nullpublic boolean requiresBuild(Build build) throws RepositoryException
build
- The build
RepositoryException
public boolean requiresPreBuildClean()
public Collection getChangeList()
getChangeList
in interface BuildStrategy
getChangeList
in class AbstractBuildStrategy
public void triggerBuild()
public void clearTrigger()
public boolean isTriggered()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |