Enum Class DependencyBlockingStrategy
java.lang.Object
java.lang.Enum<DependencyBlockingStrategy>
com.atlassian.bamboo.v2.build.trigger.DependencyBlockingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<DependencyBlockingStrategy>
,Constable
Strategy for the
DependencyBlockingManager
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull 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)static @NotNull DependencyBlockingStrategy
getStrategy
(@NotNull ImmutablePlan plan) Get strategy for buildgetValue()
Get storage valuestatic void
setStrategy
(DependencyBlockingStrategy strategy, @NotNull Plan plan) Set strategy for buildcom.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy
Returns Bamboo Specs constant used for exporting this enum.static DependencyBlockingStrategy
Returns the enum constant of this class with the specified name.static DependencyBlockingStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
-
DontBuildIfParentInQueue
-
BuildParentIfChangesDetected
-
-
Field Details
-
DEPENDENCY_BLOCKING_STRATEGY_CONFIG_KEY
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getStrategy
@NotNull public static @NotNull DependencyBlockingStrategy getStrategy(@NotNull @NotNull ImmutablePlan plan) Get strategy for build- Parameters:
plan
- to get the strategy for- Returns:
- strategy
-
setStrategy
Set strategy for build- Parameters:
strategy
- new strategy for buildplan
- to set strategy for
-
getByValue
Get the strategy by value (essentially a key lookup for type of Strategy)- Parameters:
value
- to look up- Returns:
- strategy
-
toSpecsConstant
@NotNull public com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy toSpecsConstant()Returns Bamboo Specs constant used for exporting this enum. -
fromSpecsConstant
@NotNull public static @NotNull DependencyBlockingStrategy fromSpecsConstant(@NotNull com.atlassian.bamboo.specs.api.builders.plan.dependencies.DependenciesConfiguration.DependencyBlockingStrategy exportConstant) Converts the given Bamboo Specs constant to an instance of this enum. -
getI18nKey
- Returns:
- the I18n key
-
getDescriptionI18nKey
- Returns:
- the description I18n key
-
getValue
Get storage value- Returns:
- value
-