This is an automated email from the ASF dual-hosted git repository. sjaranowski pushed a commit to branch fix-jenkins in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
commit 505f397aa375f4d1e660089e2c51606c90e89889 Author: Slawomir Jaranowski <[email protected]> AuthorDate: Mon Mar 9 21:48:18 2026 +0100 use recordCoverage --- Jenkinsfile | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ab3715587..f92af8a64 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,7 +32,8 @@ properties( final def oses = ['linux':'ubuntu'] final def mavens = ['3.x.x'] // all non-EOL versions and the first EA -final def jdks = [21, 17, 11, 8] +// final def jdks = [21, 17, 11, 8] +final def jdks = [21] final def options = ['-e', '-V', '-B', '-nsu', '-P', 'run-its'] final def goals = ['clean', 'install'] @@ -141,15 +142,10 @@ def buildProcess(String stageKey, String jdkName, String mvnName, goals, options } finally { try { if (makeReports) { - jacoco(changeBuildStatus: false, - execPattern: '**/target/jacoco*.exec', - sourcePattern: sourcesPatternCsv(), - classPattern: classPatternCsv()) - - junit(healthScaleFactor: 0.0, - allowEmptyResults: true, - keepLongStdio: true, - testResults: testReportsPatternCsv()) + recordCoverage id: "coverage-${jdkName}", name: "Coverage ${jdkName}", + tools: [[parser: 'JACOCO'], [parser: 'JUNIT', pattern: '**/target/surefire-reports/**/TEST*.xml,**/target/invoker-reports/TEST*.xml']], + sourceCodeRetention: 'MODIFIED', + sourceDirectories: [[path: 'src/main/java']] } if (errorStatus != 0) {
