[英]Sonar-Gerrit Jenkins plugin not reporting issues on Gerrit
Jenkins and SonarQube Environment Information 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).
Configuration: - Freestyle Job.配置: - 自由式工作。
Jenkins Job Console log(Last few lines):- 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
Though build/analysis is completed successfully, However nothing is commented on Gerrit.虽然构建/分析已成功完成,但是没有对 Gerrit 发表任何评论。 Is it something missing in my jenkins job setting?
我的 jenkins 作业设置中是否缺少某些内容?
Post comments issue:发表评论问题:
SonarQube has found 13752 issues, but Is there some new issue in some changed line? SonarQube 发现了 13752 个问题,但是在某些更改的行中是否有一些新问题? I ask that because you have chosen to report (comment) only if new issues are found ("Report new issues only?" option) and only in changed lines ("affect changed lines only" option).
我这样问是因为您选择仅在发现新问题时报告(评论)(“仅报告新问题?”选项)并且仅在更改的行中(“仅影响更改的行”选项)。
Post score issue:后分数问题:
You've chosen to use score "0" for "Score for no SonarQube violations found case" and for "Score for SonarQube violations found case".您已选择对“未发现 SonarQube 违规情况的评分”和“发现 SonarQube 违规情况的评分”使用评分“0”。 I think that with these options the plugin will never post the score.
我认为使用这些选项插件将永远不会发布分数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.