com.atlassian.bamboo.build.strategy
Interface BuildStrategyManager

All Superinterfaces:
TriggerTypeManager
All Known Implementing Classes:
DefaultBuildStrategyManager

public interface BuildStrategyManager
extends TriggerTypeManager

Interface to handle interactions with BuildStrategy objects


Field Summary
 
Fields inherited from interface com.atlassian.bamboo.trigger.TriggerTypeManager
BUILD_STRATEGY_DAILY, BUILD_STRATEGY_MANUAL, BUILD_STRATEGY_POLLING, BUILD_STRATEGY_SCHEDULED, BUILD_STRATEGY_TRIGGERED, SELECTED_BUILD_STRATEGY
 
Method Summary
 java.util.List<BuildStrategy> getBuildStrategies()
          Retuns a list of available BuildStrategy objects
 java.util.List<BuildStrategy> getBuildStrategies(boolean sourceControlUsed)
          Retuns a list of available BuildStrategy objects with an option to include/exclude strategies that do not apply to Plans that don't use any VCS.
 java.util.List<BuildStrategy> getBuildStrategiesForPlanCreate(boolean sourceControlUsed)
          Retuns a list of available BuildStrategy objects with an option to include/exclude strategies that do not apply to Plans that don't use any VCS.
 java.util.List<BuildTriggerCondition> getBuildTriggerConditions()
           
 BuildStrategy getNewBuildStrategyInstance(java.lang.String buildStrategyKey)
          Takes in a BuildStrategy key a creates a new BuildStrategy for that key.
 
Methods inherited from interface com.atlassian.bamboo.trigger.TriggerTypeManager
getNewTriggerInstance, getTriggerTypes, getTriggerTypes, getTriggerTypesForCreate
 

Method Detail

getBuildStrategies

@NotNull
java.util.List<BuildStrategy> getBuildStrategies()
Retuns a list of available BuildStrategy objects

Returns:
Immutable list of BuildStrategy. Empty list if none exists.

getBuildStrategies

@NotNull
java.util.List<BuildStrategy> getBuildStrategies(boolean sourceControlUsed)
Retuns a list of available BuildStrategy objects with an option to include/exclude strategies that do not apply to Plans that don't use any VCS.

Parameters:
sourceControlUsed - indicates if VCS system is used
Returns:
Immutable list of BuildStrategy. Empty list if none exists.

getNewBuildStrategyInstance

@NotNull
BuildStrategy getNewBuildStrategyInstance(@Nullable
                                                  java.lang.String buildStrategyKey)
Takes in a BuildStrategy key a creates a new BuildStrategy for that key. Will default to a manual build if the key is invalid

Parameters:
buildStrategyKey - - Cann be null
Returns:
BuildStrategy matching the key. Will return default BuildStrategy if invalid

getBuildTriggerConditions

@NotNull
java.util.List<BuildTriggerCondition> getBuildTriggerConditions()
Returns:
all trigger condition plugins currently in the system.

getBuildStrategiesForPlanCreate

@NotNull
java.util.List<BuildStrategy> getBuildStrategiesForPlanCreate(boolean sourceControlUsed)
Retuns a list of available BuildStrategy objects with an option to include/exclude strategies that do not apply to Plans that don't use any VCS. Used during creating Chains.

Parameters:
sourceControlUsed - indicates if VCS system is used
Returns:
Immutable list of BuildStrategy. Empty list if none exists.


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