com.atlassian.bamboo.build.strategy
Class BuildStrategyConfigurationServiceImpl
java.lang.Object
com.atlassian.bamboo.build.strategy.BuildStrategyConfigurationServiceImpl
- All Implemented Interfaces:
- BuildStrategyConfigurationService
public class BuildStrategyConfigurationServiceImpl
- extends Object
- implements BuildStrategyConfigurationService
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BuildStrategyConfigurationServiceImpl
public BuildStrategyConfigurationServiceImpl(@NotNull
TriggerTypeManager triggerTypeManager,
@NotNull
TriggerConfigurationService triggerConfigurationService,
@NotNull
BuildStrategyManager buildStrategyManager,
@NotNull
PlanManager planManager)
createBuildStrategy
public BuildStrategy createBuildStrategy(@NotNull
PlanKey planKey,
@NotNull
String userDescription,
@NotNull
Set<Long> triggeringRepositories,
@NotNull
org.apache.commons.configuration.HierarchicalConfiguration configuration)
throws IllegalArgumentException
- Description copied from interface:
BuildStrategyConfigurationService
- Creates a
BuildStrategy
and saves it in Chain configuration.
- Specified by:
createBuildStrategy
in interface BuildStrategyConfigurationService
- Parameters:
planKey
- of the plan to add the build strategy to, plan should be Chain
- Throws:
IllegalArgumentException
- if planKey is invalid (e.g. doesn't exist or is not a Chain)
deleteBuildStrategy
public void deleteBuildStrategy(@NotNull
PlanKey planKey,
long buildStrategyId)
throws IllegalArgumentException,
IllegalStateException
- Description copied from interface:
BuildStrategyConfigurationService
- Delete a given
BuildStrategy
from Chain
configuration.
- Specified by:
deleteBuildStrategy
in interface BuildStrategyConfigurationService
- Parameters:
planKey
- for the plan to delete the Build Strategy from.buildStrategyId
- of the Build Strategy to delete.
- Throws:
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 © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.