diff --git a/Jenkinsfile b/Jenkinsfile
index a36eb86171e..2f56f6b9a85 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -50,7 +50,20 @@ node {
// Run test phase / ignore test failures
sh "mvn -B install -Dmaven.test.failure.ignore=true"
// Report failures in the jenkins UI
- step([$class: 'JUnitResultArchiver', testResults: '**/target/surefire-reports/TEST-*.xml'])
+ step([$class: 'JUnitResultArchiver',
+ testResults: '**/target/surefire-reports/TEST-*.xml'])
+ // Collect up the jacoco execution results
+ step([$class: 'JacocoPublisher',
+ execPattern: '**/target/jacoco.exec',
+ classPattern: '**/target/classes',
+ sourcePattern: '**/src/main/java'])
+ // Report on Maven and Javadoc warnings
+ step([$class: 'WarningsPublisher',
+ consoleParsers: [
+ [parserName: 'Maven'],
+ [parserName: 'JavaDoc'],
+ [parserName: 'JavaC']
+ ]])
}
if(isUnstable())
{
diff --git a/pom.xml b/pom.xml
index e71e27814bb..7609eee7c0b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -147,6 +147,27 @@
+
+ org.jacoco
+ jacoco-maven-plugin
+ 0.7.7.201606060606
+
+
+ jacoco-initialize
+ initialize
+
+ prepare-agent
+
+
+
+ jacoco-site
+ package
+
+ report
+
+
+
+
maven-pmd-plugin
@@ -521,9 +542,9 @@
maven-surefire-plugin
2.19.1
- -showversion -Xmx1g -Xms1g -XX:+PrintGCDetails
+ @{argLine} -showversion -Xmx1g -Xms1g -XX:+PrintGCDetails
false
- random
+ 1
java.io.tmpdir