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.