@Deprecated public class DefaultBuildStrategyManager extends Object implements BuildStrategyManager
BUILD_STRATEGY_DAILY, BUILD_STRATEGY_MANUAL, BUILD_STRATEGY_POLLING, BUILD_STRATEGY_SCHEDULED, BUILD_STRATEGY_STASH, BUILD_STRATEGY_TRIGGERED, SELECTED_BUILD_STRATEGY
Constructor and Description |
---|
DefaultBuildStrategyManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
Deprecated.
Alternative constructor for agent that doesn't use feature manager
|
Modifier and Type | Method and Description |
---|---|
protected <T extends BuildStrategy> |
autowireBuildStrategy(T buildStrategy)
Deprecated.
|
List<BuildTriggerConditionModuleDescriptor> |
getAvailableBuildTriggerConditionModuleDescriptors()
Deprecated.
|
Iterable<TriggerModuleDescriptor> |
getAvailableTriggerDescriptors(Triggerable triggerable)
Deprecated.
Provides a list of available trigger types for a specific triggerable.
|
Iterable<TriggerModuleDescriptor> |
getAvailableTriggerDescriptorsByType(Class<? extends Triggerable> triggerableClass)
Deprecated.
Provides a list of available trigger types for a specific type of triggerable.
|
List<BuildStrategy> |
getBuildStrategies()
Deprecated.
Retuns a list of available
BuildStrategy objects |
List<BuildStrategy> |
getBuildStrategies(boolean sourceControlUsed)
Deprecated.
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. |
List<BuildStrategy> |
getBuildStrategiesForPlanCreate(boolean sourceControlUsed)
Deprecated.
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. |
BuildTriggerConditionModuleDescriptor |
getBuildTriggerConditionDescriptor(String pluginKey)
Deprecated.
Get the build trigger condition module descriptor matching a particular plugin key.
|
List<BuildTriggerCondition> |
getBuildTriggerConditions()
Deprecated.
|
BuildStrategy |
getNewBuildStrategyInstance(String key)
Deprecated.
Takes in a BuildStrategy key a creates a new
BuildStrategy for that key. |
TriggerActivator |
getTriggerActivator(String pluginKey)
Deprecated.
Get
TriggerActivator instance for a particular plugin key. |
TriggerModuleDescriptor |
getTriggerDescriptor(String pluginKey)
Deprecated.
Get the trigger type descriptor matching a particular plugin key.
|
public DefaultBuildStrategyManager(com.atlassian.plugin.PluginAccessor pluginAccessor)
pluginAccessor
- protected <T extends BuildStrategy> T autowireBuildStrategy(T buildStrategy)
@NotNull public BuildStrategy getNewBuildStrategyInstance(String key)
BuildStrategyManager
BuildStrategy
for that key. Will default to a manual build if the key is invalidgetNewBuildStrategyInstance
in interface BuildStrategyManager
key
- - Cann be nullBuildStrategy
matching the key. Will return default BuildStrategy
if invalid@NotNull public List<BuildStrategy> getBuildStrategies()
BuildStrategyManager
BuildStrategy
objectsgetBuildStrategies
in interface BuildStrategyManager
BuildStrategy
. Empty list if none exists.@NotNull public List<BuildStrategy> getBuildStrategiesForPlanCreate(boolean sourceControlUsed)
BuildStrategyManager
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.getBuildStrategiesForPlanCreate
in interface BuildStrategyManager
sourceControlUsed
- indicates if VCS system is usedBuildStrategy
. Empty list if none exists.@NotNull public List<BuildStrategy> getBuildStrategies(boolean sourceControlUsed)
BuildStrategyManager
BuildStrategy
objects with an option to include/exclude strategies that do not apply
to Plans that don't use any VCS.getBuildStrategies
in interface BuildStrategyManager
sourceControlUsed
- indicates if VCS system is usedBuildStrategy
. Empty list if none exists.@NotNull public List<BuildTriggerCondition> getBuildTriggerConditions()
getBuildTriggerConditions
in interface TriggerTypeManager
@NotNull public List<BuildTriggerConditionModuleDescriptor> getAvailableBuildTriggerConditionModuleDescriptors()
getAvailableBuildTriggerConditionModuleDescriptors
in interface TriggerTypeManager
@NotNull public Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptors(@NotNull Triggerable triggerable)
TriggerTypeManager
getAvailableTriggerDescriptors
in interface TriggerTypeManager
public Iterable<TriggerModuleDescriptor> getAvailableTriggerDescriptorsByType(Class<? extends Triggerable> triggerableClass)
TriggerTypeManager
TriggerTypeManager.getAvailableTriggerDescriptors(Triggerable)
getAvailableTriggerDescriptorsByType
in interface TriggerTypeManager
@Nullable public TriggerModuleDescriptor getTriggerDescriptor(@Nullable String pluginKey)
TriggerTypeManager
getTriggerDescriptor
in interface TriggerTypeManager
pluginKey
- - key to matchTriggerModuleDescriptor
matching the given key if it exists. Null if the plugin can not be found.@Nullable public BuildTriggerConditionModuleDescriptor getBuildTriggerConditionDescriptor(String pluginKey)
TriggerTypeManager
getBuildTriggerConditionDescriptor
in interface TriggerTypeManager
pluginKey
- - key to matchBuildTriggerConditionModuleDescriptor
matching the given key if it exists. Null if the plugin can not be found.@Nullable public TriggerActivator getTriggerActivator(@NotNull String pluginKey)
TriggerTypeManager
TriggerActivator
instance for a particular plugin key.getTriggerActivator
in interface TriggerTypeManager
pluginKey
- - key to matchTriggerActivator
matching the given key if it exists. Null if the plugin can not be found.Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.