|
|
@@ -89,9 +89,20 @@ node{
|
|
|
dir("${env.WORKSPACE}/angular-client"){
|
|
|
|
|
|
docker.image('trion/ng-cli-karma').inside {
|
|
|
- sh 'ng test --progress false --watch false'
|
|
|
+ sh 'npm install'
|
|
|
+
|
|
|
+ try
|
|
|
+ {
|
|
|
+ sh 'npm run test-ci'
|
|
|
+ }
|
|
|
+ catch(err)
|
|
|
+ {
|
|
|
+ sh 'echo TEST FAILED'
|
|
|
+ junit 'target/surefire-reports/TESTS-TestSuite.xml/*.xml'
|
|
|
+ throw err
|
|
|
+ }
|
|
|
}
|
|
|
- junit 'target/surefire-reports/TESTS-TestSuite.xml/*.xml'
|
|
|
+
|
|
|
}
|
|
|
// dir("${env.WORKSPACE}/angular-client")
|
|
|
// {
|