class FailureConditions
Collection of failure conditions in build configuration or template
FailureConditions(base: FailureConditions? = null, init: FailureConditions.() -> Unit = {}) |
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 FailureConditions.failOnMetricChange(base: BuildFailureOnMetric? = null, init: BuildFailureOnMetric.() -> Unit = {}): Unit
Adds a build failure condition failing build on metric change. |
|
fun FailureConditions.failOnText(base: BuildFailureOnText? = null, init: BuildFailureOnText.() -> Unit = {}): Unit
Adds a build failure condition failing build when specified text is found in a build log. |