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


The following commit(s) were added to refs/heads/fix-jenkins by this push:
     new b9302474b use recordCoverage
b9302474b is described below

commit b9302474b831e5f47812f79ea9c1d1aca2d878e9
Author: Slawomir Jaranowski <[email protected]>
AuthorDate: Mon Mar 9 21:48:18 2026 +0100

    use recordCoverage
---
 Jenkinsfile | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index ab3715587..f7ff7041b 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,16 +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) {
                 println "errorStatus=${errorStatus} we are going to archive.."

Reply via email to