com.atlassian.bamboo.build.strategy
Class StashBuildStrategy

java.lang.Object
  extended by com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
      extended by com.atlassian.bamboo.build.strategy.AbstractQuartzStrategy
          extended by com.atlassian.bamboo.build.strategy.StashBuildStrategy
All Implemented Interfaces:
BuildStrategy, QuartzStrategy, RepositoryAwareBuildStrategy, BambooIdProvider, ConvertibleFromConfig, java.io.Serializable

public class StashBuildStrategy
extends AbstractQuartzStrategy
implements QuartzStrategy, RepositoryAwareBuildStrategy

This class detects if remote events with Stash are working (it's new enough and everything is configured right) To make a triggered build. Otherwise it falls back to PollingBuildStrategy.

See Also:
Serialized Form

Field Summary
static int DEFAULT_POLLING_PERIOD
           
 
Fields inherited from class com.atlassian.bamboo.build.strategy.AbstractQuartzStrategy
scheduler
 
Fields inherited from interface com.atlassian.bamboo.build.strategy.QuartzStrategy
BUILD_STRATEGY, REPOSITORY_CHANGE_JOB, TRIGGER_CONDITIONS_CONFIGURATION, TRIGGER_ID, TRIGGERED_OBJECT_ID, TRIGGERING_REPOSITORIES
 
Constructor Summary
StashBuildStrategy()
           
 
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 type.
protected  java.lang.Class<? extends org.quartz.Job> getStrategyJob()
           
protected  org.quartz.Trigger getTrigger(Triggerable triggerable)
           
 java.util.Set<java.lang.Long> getTriggeringRepositories()
          Return a list of repository ids this trigger is configured for.
 void setTriggeringRepositories(java.util.Set<java.lang.Long> triggeringRepositories)
          Set list of repository ids this trigger is configured for.
 
Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractQuartzStrategy
canTrigger, createJobDetail, getScheduler, getUniqueId, init, initialiseJob, removeJob, setScheduler
 
Methods inherited from class com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
addDefaultValues, getBuildStrategyManager, getId, getTextProvider, getTriggerConditionsConfiguration, getTriggerDetailsSummaryHtml, getUserDescription, populateFromConfig, setId, setUserDescription, toConfiguration, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.build.strategy.QuartzStrategy
initialiseJob, removeJob
 
Methods inherited from interface com.atlassian.bamboo.build.strategy.BuildStrategy
addDefaultValues, canTrigger, getTriggerConditionsConfiguration, getTriggerDetailsSummaryHtml, getUserDescription, init, setId, setUserDescription, validate
 
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Field Detail

DEFAULT_POLLING_PERIOD

public static final int DEFAULT_POLLING_PERIOD
See Also:
Constant Field Values
Constructor Detail

StashBuildStrategy

public StashBuildStrategy()
Method Detail

getKey

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

Specified by:
getKey in interface BuildStrategy
Returns:
String must not be null

getName

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

Specified by:
getName in interface BuildStrategy
Returns:
String must not be null

getDescription

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

getStrategyJob

@NotNull
protected java.lang.Class<? extends org.quartz.Job> getStrategyJob()
Specified by:
getStrategyJob in class AbstractQuartzStrategy

getTrigger

@Nullable
protected org.quartz.Trigger getTrigger(@NotNull
                                                 Triggerable triggerable)
Specified by:
getTrigger in class AbstractQuartzStrategy

getTriggeringRepositories

public java.util.Set<java.lang.Long> getTriggeringRepositories()
Description copied from interface: RepositoryAwareBuildStrategy
Return a list of repository ids this trigger is configured for.

Specified by:
getTriggeringRepositories in interface RepositoryAwareBuildStrategy
Returns:
Set of Long

setTriggeringRepositories

public void setTriggeringRepositories(java.util.Set<java.lang.Long> triggeringRepositories)
Description copied from interface: RepositoryAwareBuildStrategy
Set list of repository ids this trigger is configured for.

Specified by:
setTriggeringRepositories in interface RepositoryAwareBuildStrategy


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.