Closed LaSylv closed 3 years ago
Sonar version : 8.8.0.42792 Plugin version : 1.7.0
I ran in the same issue on a grovvy project. But my Java project is still working.
I've a bit checked the stack trace and it fails there : https://github.com/mc1arke/sonarqube-community-branch-plugin/blob/master/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/pullrequest/AnalysisDetails.java#L207 on decimalFormat.format(coverage)
.
I don't understand why though because coverage
is a BigDecimal
(so a Number
) or is null
. If it's null
, it's not an Object
.
Fixed in 1.8.0 of the plugin
@mc1arke i see the same issue with sonarqube 9.5 and plugin version 1.12.0.
couple of observations:
1 . works fine when change is in files whose language is recognized by sonarqube but when the pull request has changes to a shell script/Jenkinsfile it is not posting any comment maybe becuase there is no language for these files in sonarqube but the expectation is that it will post a success status check and sucessful comment in pr.
question : if the language of the changes file is not available in sonarqube then plugin will not post any comment/status ?
Describe the bug Gitlab PR decoration is failing
To Reproduce Configure gitlab PR decoration Expected behavior No ERROR/failing
Software Versions
Additional context
If you have any hint on why this is happening I can try to fix this