Skip to content
Latchkey

pipefail - CI/CD Glossary Definition

pipefail is a bash option, enabled with set -o pipefail, that makes a pipeline return the exit code of the rightmost command that failed instead of only the last command code.

In CI

Without pipefail, run_tests | tee output.txt reports success even when the tests fail, because tee succeeded. GitHub Actions enables pipefail (and errexit) in its default bash shell so this trap is avoided.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →