jetbrains.buildServer.configs.kotlin.v10 / FailureConditions

FailureConditions

class FailureConditions

Collection of failure conditions in build configuration or template

Constructors

<init>

FailureConditions(base: FailureConditions? = null, init: FailureConditions.() -> Unit = {})

Properties

errorMessage

var errorMessage: Boolean?

If true, build will fail if any error message is received from logger. By default false.

executionTimeoutMin

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

javaCrash

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.

nonZeroExitCode

var nonZeroExitCode: Boolean?

If true, build will fail if build process exit code was non-zero. By default true.

testFailure

var testFailure: Boolean?

If true, build will fail if there is at least one failed test. By default true.

Functions

failureCondition

fun failureCondition(failureCondition: FailureCondition): Unit

Adds the specified failure condition

Extension Functions

failOnMetricChange

fun FailureConditions.failOnMetricChange(base: BuildFailureOnMetric? = null, init: BuildFailureOnMetric.() -> Unit = {}): Unit

Adds a build failure condition failing build on metric change.

failOnText

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.