ci: save and show both stdout and stderr

By using the `|&` operator we send both to `tee`.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-08-31 17:54:55 +02:00
parent 916d29e5c5
commit 70bf8452f7
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 2 additions and 2 deletions

View File

@ -54,10 +54,10 @@ pipeline {
stage('Checks') { stage('Checks') {
parallel { parallel {
stage('Lint') { stage('Lint') {
steps { sh "make lint > ${LOG_FILE}" } steps { sh "make lint 2>&1 | tee ${LOG_FILE}" }
} }
stage('Tests') { stage('Tests') {
steps { sh "make test >> ${LOG_FILE}" } steps { sh "make test 2>&1 | tee -a ${LOG_FILE}" }
} }
} }
} }