Skip to content

Commit e959e54

Browse files
committed
Strip colors in CI error outputs
1 parent 471ffa8 commit e959e54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ pipeline {
7373
script {
7474
def shStatusCode = sh(label: 'build-frontend', returnStatus: true, script: '''
7575
set -e
76-
./scripts/ci/build-frontend > ${WORKSPACE}/tmp-sh-build 2>&1
76+
./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
7777
''')
7878
shOutput = readFile "${env.WORKSPACE}/tmp-sh-build"
7979
if (shStatusCode != 0) {
@@ -104,7 +104,7 @@ pipeline {
104104
script {
105105
def shStatusCode = sh(label: 'test-backend', returnStatus: true, script: '''
106106
set -e
107-
./scripts/ci/test-backend > ${WORKSPACE}/tmp-sh-build 2>&1
107+
./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
108108
''')
109109
shOutput = readFile "${env.WORKSPACE}/tmp-sh-build"
110110
if (shStatusCode != 0) {

0 commit comments

Comments
 (0)