Fix escaping in groovy

This commit is contained in:
Jamie Curnow committed 2023-03-15 16:08:04 +10:00
1 parent 6ab5224353
commit fe46da3355
1 file changed
+1 -1
Vendored
+1 -1
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) {