Fix. Move from cobertura to coverage plugin in Jenkins old pipeline

Change-Id: I96437feeb3a868f4e127c807b82b475d29f005dd
Signed-off-by: caviedesj <juancamilo.caviedesvalencia.ext@telefonica.com>
diff --git a/jenkins/ci-pipelines/ci_stage_2.groovy b/jenkins/ci-pipelines/ci_stage_2.groovy
index a588cf0..5db4bc1 100644
--- a/jenkins/ci-pipelines/ci_stage_2.groovy
+++ b/jenkins/ci-pipelines/ci_stage_2.groovy
@@ -81,10 +81,13 @@
             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') {