jenkinsfile-runner
jenkinsfile-runner copied to clipboard
Jenkinsfile uses outdated publishCoverage, should use recordCoverage
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
- Confirm that the Jenkinsfile is using
publishCoverage
instead ofrecordCoverage
. See the code coverage api plugin for the note that thepublishCoverage
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
There is already a PR open but never merged : https://github.com/jenkinsci/jenkinsfile-runner/pull/709
Indeed, now it's merged. Thanks for raising it!