All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javaposse.jobdsl.dsl.helpers.toplevel.ThrottleConcurrentBuildsContext.groovy Maven / Gradle / Ivy

There is a newer version: 1.22-rxd-2
Show newest version
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