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
  • Enum Constant Details

    • BLOCK_TRIGGERING

      public static final ConcurrentBuilds.ConcurrentBuildsStrategy BLOCK_TRIGGERING
      Blocks the subsequent build execution until a slot is available. This is the default strategy.
    • STOP_OLDEST_BUILDS

      public static final ConcurrentBuilds.ConcurrentBuildsStrategy 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

      public static ConcurrentBuilds.ConcurrentBuildsStrategy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getDefault

      public static ConcurrentBuilds.ConcurrentBuildsStrategy getDefault()