From: caviedesj Date: Thu, 26 Feb 2026 17:11:48 +0000 (+0100) Subject: Fix. Move from cobertura to coverage plugin in Jenkins old pipeline X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;p=osm%2Fdevops.git Fix. Move from cobertura to coverage plugin in Jenkins old pipeline Change-Id: I96437feeb3a868f4e127c807b82b475d29f005dd Signed-off-by: caviedesj --- diff --git a/jenkins/ci-pipelines/ci_stage_2.groovy b/jenkins/ci-pipelines/ci_stage_2.groovy index a588cf0e9..5db4bc115 100644 --- a/jenkins/ci-pipelines/ci_stage_2.groovy +++ b/jenkins/ci-pipelines/ci_stage_2.groovy @@ -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') {