From: David ‘Bombe’ Roden Date: Tue, 1 Oct 2024 16:34:51 +0000 (+0200) Subject: 💚 Record coverage using the default Coverage plugin X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=471152a0332db91d961da850866b203a955cd751;p=Sone.git 💚 Record coverage using the default Coverage plugin --- diff --git a/Jenkinsfile b/Jenkinsfile index b60339f..f975642 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,12 +19,13 @@ pipeline { jdk 'OpenJDK 8' } steps { - sh './gradlew test' + sh './gradlew test jacocoTestReport' } post { always { junit 'build/test-results/*/*.xml' jacoco classPattern: 'build/classes/*/main', sourcePattern: '**/src/main/' + recordCoverage(tools: [[parser: 'JACOCO', pattern: '**/jacocoTestReport.xml']]) } } } diff --git a/build.gradle b/build.gradle index 064b94f..b357d1b 100644 --- a/build.gradle +++ b/build.gradle @@ -115,6 +115,9 @@ jacocoTestReport { include "jacoco/*.exec" }) dependsOn test + reports { + xml.required = true + } } pitest {