FailureConditions

Collection of failure conditions in build configuration or template.

Example. Failure contidions defined for build configuration. See concrete build failure conditions for more examples.

buildType {
// ...
failureConditions {
failOnText {
// ...
}
failOnMetricChange {
// ...
}
}
}

See also failureConditions().

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

If true then build will be marked as failed if out of memory error or process crash is detected. By default true.

Link copied to clipboard

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

Link copied to clipboard

If true, successful test runs of the same test will mute previous test failure in the same build By default false.

Link copied to clipboard

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

Functions

Link copied to clipboard

Copies the receiver failure conditions

Link copied to clipboard

Copies the receiver failure conditions to the specified target

Link copied to clipboard
Link copied to clipboard

Adds a build failure condition failing build when specified text is found in a build log.

Link copied to clipboard
fun failureCondition(failureCondition: FailureCondition)

Adds the specified failure condition

Adds a failure condition initialized with the specified init block

Link copied to clipboard
fun option(name: String, value: String)

Sets option with specified name and value

Link copied to clipboard
open override fun validate(consumer: ErrorConsumer)

Validates this object and reports found errors to the provided consumer