diff --git a/Jenkinsfile b/Jenkinsfile
index 1c4ffdc..b42ab4e 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -15,11 +15,14 @@ pipeline {
stage("test") {
steps {
sh "mvn test"
+ xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'target/surefire-reports/TEST-*.xml', stopProcessingIfError: true)]
+ recordCoverage(tools: [[parser: 'JUNIT', pattern: 'target/surefire-reports/TEST-*.xml']])
}
}
stage("deploy") {
steps {
sh "mvn package"
+ archiveArtifacts artifacts: 'target/*.jar', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
}
}
}
diff --git a/pom.xml b/pom.xml
index 140d40d..a0e2db4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -54,5 +54,13 @@
test
-
+
+
+
+ org.apache.maven.plugins
+ maven-surefire-plugin
+ 3.5.2
+
+
+
\ No newline at end of file