Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dmarjanovic opened this issue Feb 7, 2020 · 0 comments

Comments

@dmarjanovic
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant