jenkinsci / jenkinsfile-runner

A command line tool to run Jenkinsfile as a function
MIT License
1.14k stars 296 forks source link

Jenkinsfile uses outdated publishCoverage, should use recordCoverage #716

Open MarkEWaite opened 11 months ago

MarkEWaite commented 11 months ago

Jenkins and plugins versions report

Environment ```text 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

jonesbusy commented 11 months ago

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

oleg-nenashev commented 11 months ago

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