public enum DependencyBlockingStrategy extends Enum<DependencyBlockingStrategy>
DependencyBlockingManager
Enum Constant and Description |
---|
BuildParentIfChangesDetected |
DontBuildIfParentInQueue |
None |
Modifier and Type | Field and Description |
---|---|
static String |
DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY |
Modifier and Type | Method and Description |
---|---|
static DependencyBlockingStrategy |
fromSpecsConstant(com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy exportConstant)
Converts the given Bamboo Specs constant to an instance of this enum.
|
static DependencyBlockingStrategy |
getByValue(String value)
Get the strategy by value (essentially a key lookup for type of Strategy)
|
String |
getDescriptionI18nKey() |
String |
getI18nKey() |
static DependencyBlockingStrategy |
getStrategy(ImmutablePlan plan)
Get strategy for build
|
String |
getValue()
Get storage value
|
static void |
setStrategy(DependencyBlockingStrategy strategy,
Plan plan)
Set strategy for build
|
com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy |
toSpecsConstant()
Returns Bamboo Specs constant used for exporting this enum.
|
static DependencyBlockingStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DependencyBlockingStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DependencyBlockingStrategy None
public static final DependencyBlockingStrategy DontBuildIfParentInQueue
public static final DependencyBlockingStrategy BuildParentIfChangesDetected
public static final String DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY
public static DependencyBlockingStrategy[] values()
for (DependencyBlockingStrategy c : DependencyBlockingStrategy.values()) System.out.println(c);
public static DependencyBlockingStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@NotNull public static DependencyBlockingStrategy getStrategy(@NotNull ImmutablePlan plan)
plan
- to get the strategy forpublic static void setStrategy(DependencyBlockingStrategy strategy, @NotNull Plan plan)
strategy
- new strategy for buildplan
- to set strategy forpublic static DependencyBlockingStrategy getByValue(String value)
value
- to look up@NotNull public com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy toSpecsConstant()
@NotNull public static DependencyBlockingStrategy fromSpecsConstant(@NotNull com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy exportConstant)
public String getI18nKey()
public String getDescriptionI18nKey()
public String getValue()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.