Redirection - CI/CD用語集の定義
redirection は、>、>>、<、2> といった演算子を使って、process のストリームをファイルや別の descriptor との間で送受信します。例えば command > out.log 2>&1 は stdout と stderr の両方を取り込みます。
CI での扱い
ログを読みやすく保つために、うるさい出力は artifact としてアップロードするファイルへリダイレクトし、要約だけを表示しましょう。> は切り詰め、>> は追記であることに注意してください。両者を取り違えると、残したかったログを上書きしてしまいます。
関連ガイド
Pipe - CI/CD Glossary DefinitionPipe: A pipe (`|`) connects the standard output of one command to the standard input of the next, letting sma…
Standard Output (stdout) - CI/CD Glossary DefinitionStandard Output (stdout): Standard output (stdout, file descriptor 1) is the default stream a process writes…
Standard Error (stderr) - CI/CD Glossary DefinitionStandard Error (stderr): Standard error (stderr, file descriptor 2) is the separate stream a process writes d…