Jenkinsfile now displays test results and archives build.
This commit is contained in:
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user