This commit is contained in:
Jamie Curnow 2023-03-08 12:37:45 +10:00
parent 2e47fd99d7
commit 3d51d68984
No known key found for this signature in database
GPG key ID: FFBB624C43388E9E

16
Jenkinsfile vendored
View file

@ -64,15 +64,13 @@ pipeline {
steps {
script {
def shStatusCode = 0
// Frontend
shStatusCode = sh(label: 'Checking and Building', returnStatus: true, script: './scripts/ci/frontend-build > ${WORKSPACE}/tmp-sh-frontend-build 2>&1')
shOutput = readFile "${env.WORKSPACE}/tmp-sh-frontend-build"
if (shStatusCode != 0) {
error "Error: ${shOutput}"
}
// Backend
shStatusCode = sh(label: 'Checking and Building', returnStatus: true, script: './scripts/ci/test-and-build > ${WORKSPACE}/tmp-sh-test-and-build 2>&1')
shOutput = readFile "${env.WORKSPACE}/tmp-sh-test-and-build"
// Frontend and Backend
shStatusCode = sh(label: 'Checking and Building', returnStatus: true, script: '''
set +x
./scripts/ci/frontend-build > ${WORKSPACE}/tmp-sh-build 2>&1
./scripts/ci/test-and-build > ${WORKSPACE}/tmp-sh-build 2>&1
''')
shOutput = readFile "${env.WORKSPACE}/tmp-sh-build"
if (shStatusCode != 0) {
error "Error: ${shOutput}"
}