From fb349f4e2760cfbe2288dd572fc00f7b324ad58e Mon Sep 17 00:00:00 2001 From: caviedesj Date: Thu, 26 Feb 2026 18:11:48 +0100 Subject: [PATCH] Fix. Move from cobertura to coverage plugin in Jenkins old pipeline Change-Id: I96437feeb3a868f4e127c807b82b475d29f005dd Signed-off-by: caviedesj --- jenkins/ci-pipelines/ci_stage_2.groovy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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') { -- 2.25.1