Jenkinsfile now displays test results and archives build.

This commit is contained in:
Harrison Deng 2022-12-04 05:38:35 +00:00
parent 21ce300b08
commit 41938de11b

2
Jenkinsfile vendored
View File

@ -16,11 +16,13 @@ pipeline {
stage ("Test") {
steps {
sh "mvn -Dmaven.test.skip=false test"
junit 'target/surefire-reports/TEST-*.xml'
}
}
stage ("Package") {
steps {
sh "mvn package"
archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false
}
}
}