|
||||||||||
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.AbstractPollingBuildStrategy
com.atlassian.bamboo.build.strategy.PollingBuildStrategy
public class PollingBuildStrategy
This class defines the build, only if the build has changed strategy. This is the normal case for continuous integration.
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.build.strategy.AbstractBuildStrategy |
---|
changeList |
Constructor Summary | |
---|---|
PollingBuildStrategy()
|
|
PollingBuildStrategy(AdministrationConfiguration administrationConfiguration)
|
Method Summary | |
---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
|
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 |
boolean |
requiresBuild(Build build)
Has the given build changed since this last time is was built? If the elapsed time since the build is within the build's polling period it's ignored |
boolean |
requiresPreBuildClean()
No point! |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Takes in a BuildConfiguration and returns any errors possible |
Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractPollingBuildStrategy |
---|
hasBeenPolled, isWithinPollingPeriod, updateLastPollTime |
Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractBuildStrategy |
---|
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 PollingBuildStrategy()
public PollingBuildStrategy(AdministrationConfiguration administrationConfiguration)
Method Detail |
---|
public String getKey()
BuildStrategy
public String getName()
BuildStrategy
public String getDescription()
getDescription
in interface BuildStrategy
getDescription
in class AbstractBuildStrategy
public void addDefaultValues(BuildConfiguration buildConfiguration)
addDefaultValues
in interface BuildStrategy
addDefaultValues
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 we are checking for changes
RepositoryException
public boolean requiresPreBuildClean()
public Collection getChangeList()
getChangeList
in interface BuildStrategy
getChangeList
in class AbstractBuildStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |