jenkinsfile-runner icon indicating copy to clipboard operation
jenkinsfile-runner copied to clipboard

Jenkinsfile uses outdated publishCoverage, should use recordCoverage

Open MarkEWaite opened this issue 7 months ago • 2 comments

Jenkins and plugins versions report

Environment
Jenkinsfile as used on ci.jenkins.io and other CI environments

What Operating System are you using (both controller, and any agents involved in the problem)?

Ubuntu Linux 22.04

Reproduction steps

  1. Confirm that the Jenkinsfile is using publishCoverage instead of recordCoverage. See the code coverage api plugin for the note that the publishCoverage task is deprecated

Expected Results

Use recordCoverage to report code coverage results rather than using publishCoverage so that we can eventually remove the code coverage API plugin from ci.jenkins.io

Actual Results

publishCoverage is used instead of recordCoverage.

Anything else?

N/A

Are you interested in contributing a fix?

No response

MarkEWaite avatar Dec 29 '23 17:12 MarkEWaite

There is already a PR open but never merged : https://github.com/jenkinsci/jenkinsfile-runner/pull/709

jonesbusy avatar Dec 29 '23 18:12 jonesbusy

Indeed, now it's merged. Thanks for raising it!

oleg-nenashev avatar Dec 29 '23 19:12 oleg-nenashev