简体   繁体   English

Sonar-Gerrit插件未报告Gerrit中的问题

[英]Sonar-Gerrit Plugin Not reporting Issues in Gerrit

I am also facing the same issue with Sonar-Gerrit jenkins plugin. Sonar-Gerrit jenkins插件也面临同样的问题。 Downloaded it from Jenkins plugins site.Using Sonar-Gerrit plugin 2.2.1, and analysing sonar scan against jenkins workspace. 从Jenkins插件网站下载了它,使用Sonar-Gerrit插件2.2.1,并针对jenkins工作区分析声纳扫描。

For a sample,have changed just one file and provided the project base directory to the path of that file, and ran the sonar analysis in issues mode. 作为示例,仅更改了一个文件,并在该文件的路径中提供了项目基本目录,并在问题模式下运行了声纳分析。

Issues are not loaded in Gerrit and jenkins logs say Gerrit和jenkins日志中未加载问题

Report has loaded and contains 759 issues Issues to be commented: 0 Issues to be involved in score calculation: 0 Review has been sent 报告已加载并包含759个问题要评论的问题:0分数计算中涉及的问题:0已发送审阅

Have already referred the StackOverflow Page Sonar Gerrit plugin not reporting results . 已经提到了StackOverflow Page Sonar Gerrit插件未报告结果 Kindly advice on this 请对此提出建议

I faced a similar issue and for me the resolution was to point the Project Base Directory to my source folder. 我遇到了类似的问题,对我来说,解决方法是将Project Base Directory指向我的源文件夹。 If you're using sonar to scan all of your source files then pointing the Project Base directory at only one file I don't think it will like that. 如果您使用声纳扫描所有源文件,则将Project Base目录仅指向一个文件,我认为它不会那样。

There is a bug in 2.2.1. 2.2.1中有一个错误 If you have custom sub-project settings, the filter option "affect changed lines only" is not working correctly and removes all the files from the result. 如果您具有自定义子项目设置,则过滤器选项“仅影响更改的行”不能正常工作,并从结果中删除所有文件。 This issue will be fixed in the next release. 此问题将在下一版本中修复。

For now you can use the plugin without this option (all the issues satisfying severity and is new criteria will be posted to the changed files) 现在,您可以使用不带此选项的插件(所有满足严重性且是新标准的问题都将发布到更改的文件中)

If this does not help, make sure that you have your project settings being set up correctly. 如果这样做没有帮助,请确保正确设置了项目设置。

UPD: a new version of plugin with the fix was released UPD:已发布具有该修复程序的插件的新版本

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM