Day 11 10 min
Pipes and redirects
1 / 14 · ≈ 10 min left
The problem
The CI job failed and the ticket asks for the build output. You run ./build.sh on your machine and 5 lines scroll past. You want them in a file, filtered, or both, and the error line keeps landing on the screen instead of in the file.
The reps use one folder. ./build.sh prints 4 lines on standard output: step 1/3: compile api, step 2/3: compile web, warning: web/legacy.js is not used, step 3/3: package. It prints 1 line on standard error: error: API_KEY is not set. hosts.txt holds 3 host names, one per line, and the variable $BRANCH holds feature/login.