Simplifying build & test
This commit is contained in:
parent
28f557b0e1
commit
db76da0fee
|
@ -29,8 +29,8 @@ node('linux') {
|
|||
|
||||
timeout(60) {
|
||||
withEnv(mvnEnv) {
|
||||
// Run package then test phase / skip main compilation / ignore failures
|
||||
sh "mvn -B install test -Dmaven.main.skip=true -Dmaven.test.failure.ignore=true"
|
||||
// Run test phase / ignore test failures
|
||||
sh "mvn -B test -Dmaven.test.failure.ignore=true"
|
||||
// Report failures in the jenkins UI
|
||||
step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue