Class ConcurrentBuilds
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<T>
com.atlassian.bamboo.specs.api.builders.plan.configuration.PluginConfiguration<ConcurrentBuildsProperties>
com.atlassian.bamboo.specs.api.builders.plan.configuration.ConcurrentBuilds
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Specifies the strategy to use when the maximum number of concurrent builds is reached. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies theConcurrentBuilds.ConcurrentBuildsStrategy.BLOCK_TRIGGERING
strategy to be used when the maximum number of concurrent builds is reached.protected @NotNull ConcurrentBuildsProperties
build()
concurrentBuildsStrategy
(ConcurrentBuilds.ConcurrentBuildsStrategy concurrentBuildsStrategy) Specifies the strategy to use when the maximum number of concurrent builds is reached.boolean
int
hashCode()
maximumNumberOfConcurrentBuilds
(int maximumNumberOfConcurrentBuilds) Sets the maximum number of concurrent builds.Specifies theConcurrentBuilds.ConcurrentBuildsStrategy.STOP_OLDEST_BUILDS
strategy to be used when the maximum number of concurrent builds is reached.useSystemWideDefault
(boolean useSystemWideDefault) Sets whether to use the system-wide default for concurrent builds.
-
Constructor Details
-
ConcurrentBuilds
public ConcurrentBuilds()
-
-
Method Details
-
useSystemWideDefault
Sets whether to use the system-wide default for concurrent builds.- Parameters:
useSystemWideDefault
- if true, the system-wide default will be used. Otherwise, the maximumNumberOfConcurrentBuilds will be used.
-
maximumNumberOfConcurrentBuilds
Sets the maximum number of concurrent builds. Automatically set useSystemWideDefault to false.- Parameters:
maximumNumberOfConcurrentBuilds
- the maximum number of concurrent builds.
-
concurrentBuildsStrategy
public ConcurrentBuilds concurrentBuildsStrategy(ConcurrentBuilds.ConcurrentBuildsStrategy concurrentBuildsStrategy) Specifies the strategy to use when the maximum number of concurrent builds is reached.- Parameters:
concurrentBuildsStrategy
- the strategy to use.- Since:
- 10.0
-
blockTriggeringStrategy
Specifies theConcurrentBuilds.ConcurrentBuildsStrategy.BLOCK_TRIGGERING
strategy to be used when the maximum number of concurrent builds is reached. This strategy blocks the subsequent build execution until a slot is available. This is the default strategy.- Since:
- 10.0
-
stopOldestBuildsStrategy
Specifies theConcurrentBuilds.ConcurrentBuildsStrategy.STOP_OLDEST_BUILDS
strategy to be used when the maximum number of concurrent builds is reached. This strategy 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.- Since:
- 10.0
-
build
- Specified by:
build
in classPluginConfiguration<ConcurrentBuildsProperties>
-
equals
- Specified by:
equals
in classPluginConfiguration<ConcurrentBuildsProperties>
-
hashCode
public int hashCode()- Specified by:
hashCode
in classPluginConfiguration<ConcurrentBuildsProperties>
-