class FailureConditions : Validatable
Collection of failure conditions in build configuration or template
FailureConditions()
Collection of failure conditions in build configuration or template |
var errorMessage: Boolean
If true, build will fail if any error message is received from logger. By default false. |
|
var executionTimeoutMin: Int
Allows to set max build execution time in minutes. If this threshold is exceeded, build fails. Default value is 0 - means there is no limit in build execution time |
|
var javaCrash: Boolean
If true then build will be marked as failed if out of memory error or process crash is detected. By default true. |
|
var nonZeroExitCode: Boolean
If true, build will fail if build process exit code was non-zero. By default true. |
|
var testFailure: Boolean
If true, build will fail if there is at least one failed test. By default true. |
fun failureCondition(failureCondition: FailureCondition): Unit
Adds the specified failure condition fun failureCondition(init: FailureCondition.() -> Unit): FailureCondition
Adds a failure condition initialized with the specified init block |
|
fun option(name: String, value: String): Unit
Sets option with specified name and value |
|
fun validate(consumer: ErrorConsumer): Unit
Validates this object and reports found errors to the provided consumer |
fun FailureConditions.copy(): FailureConditions
Copies the receiver failure conditions |
|
fun FailureConditions.copyTo(target: FailureConditions): FailureConditions
Copies the receiver failure conditions to the specified target |
|
fun FailureConditions.failOnMetricChange(init: BuildFailureOnMetric.() -> Unit): BuildFailureOnMetric
Adds a build failure condition failing build on metric change. |
|
fun FailureConditions.failOnText(init: BuildFailureOnText.() -> Unit): BuildFailureOnText
Adds a build failure condition failing build when specified text is found in a build log. |