Failure Conditions
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().
Properties
If true, build will fail if any error message is received from logger. By default false.
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
If true, build will fail if build process exit code was non-zero. By default true.
If true, successful test runs of the same test will mute previous test failure in the same build By default false.
If true, build will fail if there is at least one failed test. By default true.
Functions
Copies the receiver failure conditions
Copies the receiver failure conditions to the specified target
Adds a build failure condition failing build on metric change.
Adds a build failure condition failing build when specified text is found in a build log.
Adds the specified failure condition
Adds a failure condition initialized with the specified init block
Validates this object and reports found errors to the provided consumer