adds jacoco coverage
@@ -17,14 +17,14 @@ node("master") {
docker.image("${mvnJdk8Image}").inside("${env.VOLUMES}") {
try {
//skip integration test for now
- sh "${mvnHome}/bin/mvn -V -fae clean install -Dsurefire.useFile=false -DskipITs"
+ sh "${mvnHome}/bin/mvn -V -fae jacoco:prepare-agent clean install -Dsurefire.useFile=false -DskipITs"
//clean distribution to enable recreation of databases
sh "${mvnHome}/bin/mvn -f distribution/pom.xml clean"
sh "${mvnHome}/bin/mvn -f distribution-tp2/pom.xml clean"
sh "${mvnHome}/bin/mvn deploy -DskipTests -DskipITs"
} finally {
junit allowEmptyResults: true, testResults: '**/target/surefire-reports/TEST-*.xml'
-
+ jacoco(execPattern: '**/*.exec')
}
}
}
