public class BuildStrategyConfigurationServiceImpl extends Object implements BuildStrategyConfigurationService
NEW_REPOSITORY_INDICATOR
Constructor and Description |
---|
BuildStrategyConfigurationServiceImpl(TriggerTypeManager triggerTypeManager,
TriggerConfigurationService triggerConfigurationService,
BuildStrategyManager buildStrategyManager,
PlanManager planManager) |
Modifier and Type | Method and Description |
---|---|
BuildStrategy |
createBuildStrategy(PlanKey planKey,
String userDescription,
Set<Long> triggeringRepositories,
org.apache.commons.configuration.HierarchicalConfiguration configuration)
Creates a
BuildStrategy and saves it in Chain configuration. |
void |
deleteBuildStrategy(PlanKey planKey,
long buildStrategyId)
Delete a given
BuildStrategy from Chain configuration. |
public BuildStrategyConfigurationServiceImpl(@NotNull TriggerTypeManager triggerTypeManager, @NotNull TriggerConfigurationService triggerConfigurationService, @NotNull BuildStrategyManager buildStrategyManager, @NotNull PlanManager planManager)
public BuildStrategy createBuildStrategy(@NotNull PlanKey planKey, @NotNull String userDescription, @NotNull Set<Long> triggeringRepositories, @NotNull org.apache.commons.configuration.HierarchicalConfiguration configuration) throws IllegalArgumentException
BuildStrategyConfigurationService
BuildStrategy
and saves it in Chain configuration.createBuildStrategy
in interface BuildStrategyConfigurationService
planKey
- of the plan to add the build strategy to, plan should be Chain
IllegalArgumentException
- if planKey is invalid (e.g. doesn't exist or is not a Chain)public void deleteBuildStrategy(@NotNull PlanKey planKey, long buildStrategyId) throws IllegalArgumentException, IllegalStateException
BuildStrategyConfigurationService
BuildStrategy
from Chain
configuration.deleteBuildStrategy
in interface BuildStrategyConfigurationService
planKey
- for the plan to delete the Build Strategy from.buildStrategyId
- of the Build Strategy to delete.IllegalArgumentException
- if planKey is invalid (e.g. doesn't exist or is not a Chain),IllegalStateException
- if the build strategy list has changed since submitting request, i.e the build strategy isn't there to delete anymore.Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.