Enum Class ConcurrentBuilds.ConcurrentBuildsStrategy
java.lang.Object
java.lang.Enum<ConcurrentBuilds.ConcurrentBuildsStrategy>
com.atlassian.bamboo.specs.api.builders.plan.configuration.ConcurrentBuilds.ConcurrentBuildsStrategy
- All Implemented Interfaces:
Serializable
,Comparable<ConcurrentBuilds.ConcurrentBuildsStrategy>
,Constable
- Enclosing class:
- ConcurrentBuilds
public static enum ConcurrentBuilds.ConcurrentBuildsStrategy
extends Enum<ConcurrentBuilds.ConcurrentBuildsStrategy>
Specifies the strategy to use when the maximum number of concurrent builds is reached.
- Since:
- 10.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionBlocks the subsequent build execution until a slot is available.Always allows executing the fresh build and keeps only the latest builds by stopping the old ones that don't meet the concurrent builds number limit. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK_TRIGGERING
Blocks the subsequent build execution until a slot is available. This is the default strategy. -
STOP_OLDEST_BUILDS
Always allows executing the fresh build and keeps only the latest builds by stopping the old ones that don't meet the concurrent builds number limit. The build priority is determined based on the build start time.
-
-
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
-
getDefault
-