Sonar-Gerrit插件未报告Gerrit中的问题 [英] Sonar-Gerrit Plugin Not reporting Issues in Gerrit

查看:395
本文介绍了Sonar-Gerrit插件未报告Gerrit中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sonar-Gerrit jenkins插件也面临着同样的问题.从Jenkins插件网站下载.使用Sonar-Gerrit插件2.2.1,并针对jenkins工作区分析声纳扫描.

I am also facing the same issue with Sonar-Gerrit jenkins plugin. Downloaded it from Jenkins plugins site.Using Sonar-Gerrit plugin 2.2.1, and analysing sonar scan against jenkins workspace.

对于一个示例,仅更改了一个文件,并在该文件的路径中提供了项目基本目录,并在问题模式下运行了声纳分析.

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.

Gerrit和jenkins日志中未加载问题

Issues are not loaded in Gerrit and jenkins logs say

报告已加载并包含759个问题要评论的问题:0分数计算涉及的问题:0已发送审阅

Report has loaded and contains 759 issues Issues to be commented: 0 Issues to be involved in score calculation: 0 Review has been sent

已经引用了StackOverflow页面 Sonar Gerrit插件未报告结果.请对此提供建议

Have already referred the StackOverflow Page Sonar Gerrit plugin not reporting results. Kindly advice on this

推荐答案

有一个错误在2.2.1中.如果您具有自定义子项目设置,则过滤器选项仅影响更改的行"不能正常工作,并从结果中删除所有文件.此问题将在下一版本中修复.

There is a bug in 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:发布了具有此修复程序的插件的新版本

UPD: a new version of plugin with the fix was released

这篇关于Sonar-Gerrit插件未报告Gerrit中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆