test
This commit is contained in:
parent
2e47fd99d7
commit
3d51d68984
1 changed files with 7 additions and 9 deletions
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
|
|
@ -64,15 +64,13 @@ pipeline {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
def shStatusCode = 0
|
def shStatusCode = 0
|
||||||
// Frontend
|
// Frontend and Backend
|
||||||
shStatusCode = sh(label: 'Checking and Building', returnStatus: true, script: './scripts/ci/frontend-build > ${WORKSPACE}/tmp-sh-frontend-build 2>&1')
|
shStatusCode = sh(label: 'Checking and Building', returnStatus: true, script: '''
|
||||||
shOutput = readFile "${env.WORKSPACE}/tmp-sh-frontend-build"
|
set +x
|
||||||
if (shStatusCode != 0) {
|
./scripts/ci/frontend-build > ${WORKSPACE}/tmp-sh-build 2>&1
|
||||||
error "Error: ${shOutput}"
|
./scripts/ci/test-and-build > ${WORKSPACE}/tmp-sh-build 2>&1
|
||||||
}
|
''')
|
||||||
// Backend
|
shOutput = readFile "${env.WORKSPACE}/tmp-sh-build"
|
||||||
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"
|
|
||||||
if (shStatusCode != 0) {
|
if (shStatusCode != 0) {
|
||||||
error "Error: ${shOutput}"
|
error "Error: ${shOutput}"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue