Fix escaping in groovy

This commit is contained in:
Jamie Curnow 2023-03-15 16:08:04 +10:00
parent 6ab5224353
commit fe46da3355
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

2
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 | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" > ${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) {