AllowFailure¶
class AllowFailure : YamlExport
Configuration for job failure tolerance.
Use allow_failure to determine whether a pipeline should continue running when a job fails.
Example¶
To let the pipeline continue running subsequent jobs, use allowFailure(true):
Example: exit codes¶
You can also allow failure only for specific exit codes:
External resources¶
Functions¶
onExitCode¶
fun onExitCode(code: Int)
Specifies which exit code is allowed to fail.
If the job fails with this exit code, it will be considered successful (with a warning).
Example¶
External resources¶
toYaml¶
Converts this object into a Yaml object.