From fe46da33554e5cfa0ada65a6cfc9a0f79b67ebe3 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 15 Mar 2023 16:08:04 +1000 Subject: [PATCH] Fix escaping in groovy --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ceadc4ec..892e18ff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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) {