Save the war and avoid rebuild during test stages

This commit is contained in:
R. Tyler Croy 2017-04-25 07:48:51 -07:00 committed by GitHub
parent 1fd84c9794
commit d1de46896f
1 changed files with 3 additions and 1 deletions

4
Jenkinsfile vendored
View File

@ -19,6 +19,7 @@ pipeline {
steps {
unstash 'ws'
sh './mvnw -B clean compile'
stash name: 'war', includes: 'target/**/*.war'
}
}
stage('Backend') {
@ -32,12 +33,13 @@ pipeline {
parallel(
'Unit' : {
unstash 'ws'
unstash 'war'
sh './mvnw -B test package'
junit '**/surefire-reports/**/*.xml'
stash name: 'war', includes: 'target/**/*.war'
},
'Performance' : {
unstash 'ws'
unstash 'war'
sh './mvnw -B gatling:execute'
})
}