This commit is contained in:
Jamie Curnow 2023-04-11 21:36:13 +10:00
parent 00aaa024a6
commit 7745f8242b
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

21
Jenkinsfile vendored
View File

@ -70,16 +70,17 @@ pipeline {
} }
stage('Frontend') { stage('Frontend') {
steps { steps {
script { sh './scripts/ci/build-frontend'
def shStatusCode = sh(label: 'build-frontend', returnStatus: true, script: ''' // script {
set -e // def shStatusCode = sh(label: 'build-frontend', returnStatus: true, script: '''
./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 // 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
shOutput = readFile "${env.WORKSPACE}/tmp-sh-build" // ''')
if (shStatusCode != 0) { // shOutput = readFile "${env.WORKSPACE}/tmp-sh-build"
error "${shOutput}" // if (shStatusCode != 0) {
} // error "${shOutput}"
} // }
// }
} }
post { post {
always { always {