github-pr-coverage-status-plugin icon indicating copy to clipboard operation
github-pr-coverage-status-plugin copied to clipboard

Unknown parameter(s) found for class type 'com.github.terma.jenkins.githubprcoveragestatus.CompareCoverageAction': jacocoCounterType

Open dmarjanovic opened this issue 5 years ago • 0 comments

We see:

Unknown parameter(s) found for class type 'com.github.terma.jenkins.githubprcoveragestatus.CompareCoverageAction': jacocoCounterType

when using documented approach from README.md:

if ('SUCCESS' == currentBuild.currentResult) {
    currentBuild.result = 'SUCCESS'
    step([$class: 'CompareCoverageAction', jacocoCounterType: 'INSTRUCTION', publishResultAs: 'comment', scmVars: [GIT_URL: env.GIT_URL]])
}

If we simply replace jacocoCounterType with jacocoCoverageCounter (reference in CompareCoverageAction class) the warning is not shown.

Note: problem is only with CompareCoverageAction. All works as expected for MasterCoverageAction though.

I assume if CompareCoverageAction class is changed it might break current setup that some are using. It makes sense to fix the README.md though since currently it's a bug in documentation. Please fix.

dmarjanovic avatar Feb 07 '20 07:02 dmarjanovic