maxRunningBuildsPerBranch

var maxRunningBuildsPerBranch: String

Allows to set maximum number of simultaneously running builds per branch. Each line must be in form of branch:number, where branch is either a logical branch name or a pattern containing and number specifies the maximum number of builds which can be simultaneously running in each branch matching the pattern. 0 means there is no limit.

Example. Limit number of concurrent builds in the default branch to 1

maxRunningBuildsPerBranch = "<default>:1"

Example. Different rules for different branch names

maxRunningBuildsPerBranch = """
<default>:0
feature/*:1
""".trimIndent()
*/

The rule above limits all the builds from the branches starting with "feature" prefix to 1, which means for each such a branch only one build can run at the same time, all other builds will sit in the queue. At the same time there is no limit for the builds from the default branch.

Since

2022.04