Strip colors in CI error outputs

This commit is contained in:
Jamie Curnow 2023-03-09 15:43:22 +10:00
parent 471ffa8dff
commit e959e54dc8
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

4
Jenkinsfile vendored
View File

@ -73,7 +73,7 @@ pipeline {
script {
def shStatusCode = sh(label: 'build-frontend', returnStatus: true, script: '''
set -e
./scripts/ci/build-frontend > ${WORKSPACE}/tmp-sh-build 2>&1
./scripts/ci/build-frontend | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" > ${WORKSPACE}/tmp-sh-build 2>&1
''')
shOutput = readFile "${env.WORKSPACE}/tmp-sh-build"
if (shStatusCode != 0) {
@ -104,7 +104,7 @@ pipeline {
script {
def shStatusCode = sh(label: 'test-backend', returnStatus: true, script: '''
set -e
./scripts/ci/test-backend > ${WORKSPACE}/tmp-sh-build 2>&1
./scripts/ci/test-backend | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" > ${WORKSPACE}/tmp-sh-build 2>&1
''')
shOutput = readFile "${env.WORKSPACE}/tmp-sh-build"
if (shStatusCode != 0) {