com.atlassian.bamboo.build.strategy
Class PollingBuildStrategy

java.lang.Object
  extended by com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
      extended by com.atlassian.bamboo.build.strategy.AbstractPollingBuildStrategy
          extended by com.atlassian.bamboo.build.strategy.PollingBuildStrategy
All Implemented Interfaces:
BuildStrategy, ConvertibleFromConfig

public class PollingBuildStrategy
extends AbstractPollingBuildStrategy

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

PollingBuildStrategy

public PollingBuildStrategy()

PollingBuildStrategy

public PollingBuildStrategy(AdministrationConfiguration administrationConfiguration)
Method Detail

getKey

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

Returns:
String must not be null

getName

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

Returns:
String must not be null

getDescription

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

addDefaultValues

public void addDefaultValues(BuildConfiguration buildConfiguration)
Specified by:
addDefaultValues in interface BuildStrategy
Overrides:
addDefaultValues 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

requiresBuild

public boolean requiresBuild(Build build)
                      throws RepositoryException
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

Parameters:
build - The build we are checking for changes
Returns:
true iff the build has changed, false otherwise
Throws:
RepositoryException

requiresPreBuildClean

public boolean requiresPreBuildClean()
No point!

Returns:
false

getChangeList

public Collection getChangeList()
Get the changes that have been detected

Specified by:
getChangeList in interface BuildStrategy
Overrides:
getChangeList in class AbstractBuildStrategy
Returns:
The files that have changed


Copyright © 2006 Atlassian Software Systems. All Rights Reserved.