com.atlassian.bamboo.build.strategy
Class StashBuildStrategy
java.lang.Object
com.atlassian.bamboo.build.strategy.AbstractBuildStrategy
com.atlassian.bamboo.build.strategy.AbstractQuartzStrategy
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
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.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 |
DEFAULT_POLLING_PERIOD
public static final int DEFAULT_POLLING_PERIOD
- See Also:
- Constant Field Values
StashBuildStrategy
public StashBuildStrategy()
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.