Pipe - CI/CD用語集の定義
pipe(|)は、あるコマンドの standard output を次のコマンドの standard input に接続し、小さなツールを組み合わせられるようにします。コマンドは別々の process で並行して実行されます。
CI での扱い
デフォルトでは shell は pipe 内の最後のコマンドの終了コードだけを報告するため、failing | tee log は成功したように見えます。pipefail を有効にすると、いずれかの段が失敗したときに pipe を失敗させることができ、CI のステップでは通常これが望まれます。
関連ガイド
pipefail - CI/CD Glossary Definitionpipefail: pipefail is a bash option, enabled with `set -o pipefail`, that makes a pipeline return the exit co…
Redirection - CI/CD Glossary DefinitionRedirection: Redirection sends a process stream to or from a file or another descriptor using operators like…
Named Pipe (FIFO) - CI/CD Glossary DefinitionNamed Pipe (FIFO): A named pipe, or FIFO, is a pipe that exists as a path on the filesystem, created with `mk…