Fix. Move from cobertura to coverage plugin in Jenkins old pipeline 24/15824/1 master
authorcaviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
Thu, 26 Feb 2026 17:11:48 +0000 (18:11 +0100)
committercaviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
Thu, 26 Feb 2026 17:11:48 +0000 (18:11 +0100)
Change-Id: I96437feeb3a868f4e127c807b82b475d29f005dd
Signed-off-by: caviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
jenkins/ci-pipelines/ci_stage_2.groovy

index a588cf0..5db4bc1 100644 (file)
@@ -81,10 +81,13 @@ def ci_pipeline(mdg,url_prefix,project,branch,refspec,revision,do_stage_3,artifa
             sh "chmod 755 /usr/bin/mesg"
             sh "runuser jenkins -c devops-stages/stage-test.sh"
             if (fileExists('coverage.xml')) {
-                cobertura coberturaReportFile: 'coverage.xml'
+              recordCoverage tools: [[
+                parser: 'COBERTURA',
+                pattern: 'coverage.xml'
+              ]], sourceDirectories: []
             }
             if (fileExists('nosetests.xml')) {
-                junit 'nosetests.xml'
+              junit 'nosetests.xml'
             }
         }
         stage('Build') {