SonarQube - Views Portfolio Plugin aka Helicopter View nemo - 结合所有项目指标 [英] SonarQube - Views Portfolio Plugin aka Helicopter View nemo - Combined all projects metrics

查看:40
本文介绍了SonarQube - Views Portfolio Plugin aka Helicopter View nemo - 结合所有项目指标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个关于在我们的 SonarQube 实例上获取文档).>

有没有人成功地在 VIEW(通过使用 Views Portfolio 插件创建)中使用了 SonarQube 中可用的 SCM 小部件?谢谢.

解决方案

SCM Stats 插件(以及其他核心插件),SonarSource 不提供也不支持.这就是为什么我们会在项目级别而不是在视图级别看到指标.对于构建稳定性小部件,其指标的聚合在视图级别不可用.

视图用于聚合以代码为中心的指标,而不是围绕代码工作的插件(CI、JIRA 等)提供的额外指标

我唯一想找到的是,为什么 Views 插件使用的设置与项目仪表板使用的设置相同.视图插件要么应该支持所有小部件(用于显示以代码为中心或外部代码的组合指标,如 CI、JIRA 等或任何小部件——或者使用视图组合插件创建的视图必须有自己的仪表板(而不是使用/继承/取决于我们为项目设置的仪表板/小部件).

I'm doing a POC on getting Helicopter view on our SonarQube instance. I'm using latest SonarQube (5.1), sonar-runner (2.4), Gradle 2.3 (build system) on a RHEL 6.6 (Santiago) machine.

Helicopter view:

Plugin in SonarQube that I'm trying is: http://www.sonarsource.com/products/plugins/governance/portfolio-management/

The end result I want on my SonarQube instance is, to look like this: http://nemo.sonarqube.org/ and if you click on one of the VIEW(which you can create using Views Portfolio plugin), then it should give you a COMBINED metrics/info for a given view (which can be created by a user for a given Project/Product team, projects owned by a XYZ manager, department, etc or for all applications / service projects in a given organization, office, domain etc. Whatever projects you select (manually/using regular expression/etc way) in a VIEW, will be shown as one component (thus showing a user combined metrics).

Few links that I'm trying: http://www.sonarqube.org/everythings-a-component/, http://www.sonarsource.com/products/plugins/governance/portfolio-management/installation-and-usage/ and http://www.sonarqube.org/measures-at-your-service/

I'm able to get the above metrics except the COMBINED all projects info (that I'm getting for some widgets for ex: for Unit/IT tests/coverage, Lines of Code, Filter motion chart, Components chart, Technical Debt, Complexity, Tangle index, Duplications, etc etc) is NOT showing up for other widgets (for ex: SCM Top 10 authors, SCM commits per month for a given period, SCM Top 10 author's activity etc).

Please NOTE: For the above widgets which are not showing valid data for all the component projects which are part of the VIEW/sub-view, I can see the widgets in the project itself HAVE valid populated data. It's only not showing in the VIEW dashboard where it should show the combined data (for SCM* widgets).

I'm getting the following image for SCM* widgets in the VIEW that right now contains only 2 projects (one application and one is a service project).

As I mentioned above, I'm successfully able to see valid info related to these SCM* widgets when I go to the application and service project's individual project dashboard page in SonarQube.

Not sure why VIEWS Portfolio plugin is not able to combine SCM* widgets info to show combined info when the widgets are enabled/included in the VIEW's dashboard (which uses the project's dashboard settings/widgets as well as per SonarQube Views plugin installation/configuration documentation).

Has anybody successfully used SCM widgets that are available in SonarQube in a VIEW (created by using Views Portfolio plugin)? Thanks.

解决方案

SCM Stats plugin (and there are other core plugins) which are not provided nor supported by SonarSource. That's why we see the metrics at project level but not at Views level. For Build Stability widget, aggregation of its metrics are not available at Views level.

Views is there to aggregate code centric metrics, not the extra metrics provided by plugins working around the code (CI, JIRA, ...)

The only thing I would like to find is, why Views plugin is using the same settings that a project dashboard is using. Views plugin either should support all the widgets (for showing combined metrics for code centric or external to code like CI, JIRA etc or any widgets --OR the VIEW created using Views Portfolio plugin MUST have their own dashboard (instead of using/inherting/depending upon what dashboard/widgets we are setting for a Project).

这篇关于SonarQube - Views Portfolio Plugin aka Helicopter View nemo - 结合所有项目指标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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