Try tricking Jenkins into using
This commit is contained in:
parent
850b02273a
commit
7e9cb2c1f1
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -1,6 +1,7 @@
|
|||||||
#!/usr/bin/env groovy
|
#!/usr/bin/env groovy
|
||||||
|
|
||||||
node {
|
node {
|
||||||
|
withEnv(["PATH=$HOME/bin:$PATH"]) {
|
||||||
stage('checkout') {
|
stage('checkout') {
|
||||||
checkout scm
|
checkout scm
|
||||||
}
|
}
|
||||||
@ -21,7 +22,7 @@ node {
|
|||||||
stage('backend tests') {
|
stage('backend tests') {
|
||||||
try {
|
try {
|
||||||
sh "./gradlew test -PnodeInstall --no-daemon"
|
sh "./gradlew test -PnodeInstall --no-daemon"
|
||||||
} catch(err) {
|
} catch (err) {
|
||||||
throw err
|
throw err
|
||||||
} finally {
|
} finally {
|
||||||
junit '**/build/**/TEST-*.xml'
|
junit '**/build/**/TEST-*.xml'
|
||||||
@ -31,7 +32,7 @@ node {
|
|||||||
stage('frontend tests') {
|
stage('frontend tests') {
|
||||||
try {
|
try {
|
||||||
sh "./gradlew npm_run_test -PnodeInstall --no-daemon"
|
sh "./gradlew npm_run_test -PnodeInstall --no-daemon"
|
||||||
} catch(err) {
|
} catch (err) {
|
||||||
throw err
|
throw err
|
||||||
} finally {
|
} finally {
|
||||||
junit '**/build/test-results/TESTS-*.xml'
|
junit '**/build/test-results/TESTS-*.xml'
|
||||||
@ -48,4 +49,5 @@ node {
|
|||||||
sh "./gradlew sonarqube --no-daemon"
|
sh "./gradlew sonarqube --no-daemon"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@ rootProject.name=hsadmin-ng
|
|||||||
profile=dev
|
profile=dev
|
||||||
|
|
||||||
# Build properties
|
# Build properties
|
||||||
node_version=10.15.0
|
node_version=10.15.3
|
||||||
npm_version=6.4.1
|
npm_version=6.4.1
|
||||||
yarn_version=1.13.0
|
yarn_version=1.13.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user