javaposse.jobdsl.dsl.helpers.toplevel.ThrottleConcurrentBuildsContext.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of job-dsl-core Show documentation
Show all versions of job-dsl-core Show documentation
Javaposse jenkins job-dsl-core
package javaposse.jobdsl.dsl.helpers.toplevel
import javaposse.jobdsl.dsl.helpers.Context
class ThrottleConcurrentBuildsContext implements Context {
def throttleDisabled = false
def categories = []
def maxConcurrentPerNode = 0
def maxConcurrentTotal = 0
def throttleDisabled(boolean throttleDisabled = true) {
this.throttleDisabled = throttleDisabled
}
def categories(List categories) {
this.categories = categories
}
def maxPerNode(int maxPerNode) {
this.maxConcurrentPerNode = maxPerNode
}
def maxTotal(int maxTotal) {
this.maxConcurrentTotal = maxTotal
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy