Sonar-Gerrit Jenkins 插件不报告 Gerrit 上的问题

Sonar-Gerrit Jenkins plugin not reporting issues on Gerrit

Jenkins 和 SonarQube 环境信息

Jenkins - 2.235.5
Gerrit Trigger - 2.31.0
Sonar Gerrit Plugin - 2.4.3
SonarQube Scanner for Jenkins - 2.12    
SonarQube Version -  6.7.7 (LTS).

配置: - 自由式作业。

Jenkins 作业控制台日志(最后几行):-

INFO: Performing issue tracking
INFO: 3270/3270 components tracked
INFO: Export issues to /jenkins-node/workspace/Gerrit-Test/.scannerwork/sonar-report.json
INFO: ANALYSIS SUCCESSFUL
INFO: Executing post-job Final report
INFO: Turn debug info on to get more details (sonar-scanner -X -Dsonar.verbose=true ...).
INFO: Task total time: 2:21.625 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 2:22.428s
INFO: Final Memory: 71M/1470M
INFO: ------------------------------------------------------------------------
WARN: Unable to locate 'report-task.txt' in the workspace. Did the SonarScanner succeed?
Getting Sonar Report from: /jenkins-node/workspace/Gerrit-Test/.scannerwork/sonar-report.json
Report has loaded and contains 13752 issues
Issues to be commented: 0
Issues to be involved in score calculation: 0
Review has been sent
Finished: SUCCESS

虽然build/analysis成功完成,但是Gerrit上没有任何评论。我的 jenkins 作业设置中是否缺少某些内容?

Post评论问题:

SonarQube 已发现 13752 个问题,但是否在某些更改的行中出现了新问题?我问这个是因为您选择了仅在发现新问题时报告(评论)(“仅报告新问题?”选项)并且仅在更改的行中(“仅影响更改的行”选项)。

Post 分数问题:

您已选择将分数“0”用于“未发现 SonarQube 违规案例的分数”和“已发现 SonarQube 违规案例的分数”。我认为使用这些选项插件永远不会 post 得分。