This feature is available to all users.
The primary use case for this feature is to allow users to configure a build to terminate automatically after a predetermined number or percentage of failures rather than waiting for the entire build to complete.
This feature allows you to set per-branch thresholds via
failure_thresholds: - branch: master threshold: 1 # stop after first failure - branch: "*" threshold: '10%' # stop after 10% of the total fail
Branch patterns are either regular expressions or simple globs that can use “*” and ”?” as wild cards. Branch patterns are evaluated in order and the first to match wins.