Build failure behavior

If an error occurs in the before_install, install, or before_script life cycle events then the CI build will immediately error out and the CI build will stop.

If an error occurs in the script life cycle event then the build will fail but the CI build will continue to run.

If an error occurs in the after_success, after_failure, after_script, and after_deploy life cycle events then the build will not be marked as a failure but if any of these life cycle events results in a timeout then the build will be marked as a failure.

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.