javaposse.jobdsl.dsl.helpers.wrapper.TimeoutContext.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.wrapper
import javaposse.jobdsl.dsl.helpers.Context
/** Context to configure timeout */
class TimeoutContext implements Context {
WrapperContext.Timeout type
def limit = 3
def failBuild = false
def writeDescription = false
def percentage = 0
TimeoutContext(WrapperContext.Timeout type) {
this.type = type
}
def limit(int limit) {
this.limit = limit
}
def failBuild(boolean fail) {
this.failBuild = fail
}
def writeDescription(boolean writeDesc) {
this.writeDescription = writeDesc
}
def percentage(int percentage) {
this.percentage = percentage
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy