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
Pipe - CI/CD Glossary DefinitionPipe: A pipe (`|`) connects the standard output of one command to the standard input of the next, letting sma…
Shell - CI/CD Glossary DefinitionShell: A shell is the command interpreter that reads commands, expands variables and globs, and launches proc…
Exit Code - CI/CD Glossary DefinitionExit Code: An **exit code** is the number a process returns when it ends. Zero means success; non-zero means…