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
Nested ClassesModifier and TypeClassDescriptionstatic enumSpecifies the strategy to use when the maximum number of concurrent builds is reached. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies theConcurrentBuilds.ConcurrentBuildsStrategy.BLOCK_TRIGGERINGstrategy to be used when the maximum number of concurrent builds is reached.protected @NotNull ConcurrentBuildsPropertiesbuild()concurrentBuildsStrategy(ConcurrentBuilds.ConcurrentBuildsStrategy concurrentBuildsStrategy) Specifies the strategy to use when the maximum number of concurrent builds is reached.booleaninthashCode()maximumNumberOfConcurrentBuilds(int maximumNumberOfConcurrentBuilds) Sets the maximum number of concurrent builds.Specifies theConcurrentBuilds.ConcurrentBuildsStrategy.STOP_OLDEST_BUILDSstrategy 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_TRIGGERINGstrategy 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_BUILDSstrategy 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:
buildin classPluginConfiguration<ConcurrentBuildsProperties>
-
equals
- Specified by:
equalsin classPluginConfiguration<ConcurrentBuildsProperties>
-
hashCode
public int hashCode()- Specified by:
hashCodein classPluginConfiguration<ConcurrentBuildsProperties>
-