Not able to change value for "Jacoco coverage counter type"
We tried to change the value for "Jacoco coverage counter type" in "Publish coverage to GitHub" from "instruction" to "Line". But it new config changes are not getting changed and it is always considering "instruction".Please advise.
@smurugesh1686 are you using pipeline or freestyle job? can you show how are you configuring the plugin?
@dmotpan: It is a freestyle job.
JOB Config:

I am experiencing the same issue. Also, I am not sure how instruction coverage is being calculated.
I am experiencing the same issue with a multi-branch pipeline. I have the following line in my Jenkinsfile
step( [ $class: 'CompareCoverageAction', jacocoCounterType: 'LINE', publishResultAs: 'comment', scmVars: [GIT_URL: env.GIT_URL] ] )
I am experiencing the same issue, it appears to be an issue with the UI in Jenkins. We are running Jenkins on Windows.
- Open a build
- Set the coverage to Complexity & Status Check
- Save
- View Job Config History, note it saved correctly
<com.github.terma.jenkins.githubprcoveragestatus.CompareCoverageAction plugin="[email protected]"> <jacocoCoverageCounter>COMPLEXITY</jacocoCoverageCounter> <publishResultAs>statusCheck</publishResultAs> </com.github.terma.jenkins.githubprcoveragestatus.CompareCoverageAction>
- Reopen the same build config
- Note the dropdowns display Instruction and Comment unexpectedly and not matching step 4.
- Change an unrelated element somewhere else in the config and click save.
- View "Job Config History" again. Note it has reverted to Instruction and Comment
<com.github.terma.jenkins.githubprcoveragestatus.CompareCoverageAction plugin="[email protected]"> <jacocoCoverageCounter>INSTRUCTION</jacocoCoverageCounter> <publishResultAs>comment</publishResultAs> </com.github.terma.jenkins.githubprcoveragestatus.CompareCoverageAction>
I think I found the root cause here: https://stackoverflow.com/questions/28972175/values-not-persisting-in-dropdown-of-optional-block-jelly-jenkins
Will try and create a PR.
Is this issue fixed? I am still facing this issue.