failure Conditions
  Configures failure conditions
Example. Failure contidions defined for build configuration. See concrete build failure conditions for more examples.
buildType {
    // ...
    failureConditions {
        failOnText {
            // ...
        }
        failOnMetricChange {
            // ...
        }
    }
}Content copied to clipboard
Example. Fail a build if some text appears in the build log
See also build failure on text
failureConditions {
    failOnText {
        conditionType = BuildFailureOnText.ConditionType.CONTAINS
        pattern = "ERROR"
        failureMessage = """Found "ERROR" in the log"""
        reverse = false
    }
}Content copied to clipboard
Parameters
init
function to initialize failure conditions