failureConditions

Configures failure conditions

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

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

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
}
}

Parameters

init

function to initialize failure conditions