I have installed a sonar web site, a jenkins web site( CI machine).
While CI server build projects and send info to sonar server as sonar client.
There are lots of projects in my sonar server.
I need a way to setup dashboard with all projects view or widget.
Just like timeline in sonar demo site
But when I configure my own sonar dashboard, I think there are only treemap and list which hava filter. ( with filter I can get analysis of all projects )
How did sonar demo web site do this?
(Sonar 3.6.2 , CentOS 6.4)
Thanks a lot ~
They are using the views plugin to do it, without (paying for) it you won't be able to do it.
Once you get the plugin, create a view with all your projects, use the view's dashboard as your main dashboard (in manage dashboards) and add the following widgets : "SQALE overview", "issues and technical debt", "timeline", "measure filter as donut chart" and "measure filter as treemap".
That's it, cheers.
This is a matter of the Global Dashboard.
Go to Manage Dashboards -> And here you can either select a current dashboard or create a new one. You have the option of adding a treemap with the metrics of your choice. Their "helicopter view" and the other features are all an aspect of the global dashboard feature. You can compare your projects and show the metrics or multiple projects through this.
Ran in the same situation and after search for workarounds , only find the new product
Governance
The Governance product provides the features to gear-up SonarQube from team-grade deployment to enterprise-grade deployment.
http://www.sonarsource.com/products/plugins/governance/
will be able to do that
Related
We are looking for an option in Artifactory Pro edition, where want to make a central dashboard for downloaded artifacts. Currently the each artifacts has count for # of downloads but we want to extend it more -
Number of downloads
Who downloaded it
from where its downloaded
Dashboard with filter criteria. Please help if anybody has build this type capability. I know probably we can use a plugin for this getting metrics and storing it to somewhere else. But we are looking for option provided by JFrog Artifactory.
Package view is part of the Platform versions (Artifactory 7.x and above): https://www.jfrog.com/confluence/display/JFROG/Package+Management
I suggest you upgrade as this is pretty much what you need.
On your current version there isn't such dashboard, but you can gather the information easily using the Artifactory Query Language: https://www.jfrog.com/confluence/display/JFROG/Artifactory+Query+Languagea
There is no metrics dashboard provided by Jfrog out of the box that would fit this need.
As mentioned by Angello you need to scrape the metrics yourself using the AQL or using different APIs provided by Jfrog then use that data to post onto a dashboard custom made for your usecase.
Is it possible to restrict the publishing of new analysis on a sonar instance. My use case is I created new instance of sonar with the latest version. There are couple of projects configured with the old version. I want to make sure that no project team use old instance of sonar. At server level, is it possible to stop publishing new report.
Also what customization options sonar server gives for its home page. I want to display a custom message with Sonar 5.6 version
Atul
You seem to have stood up two different instances of SonarQube side by side. In doing so, you impose on your teams the requirement to update their CI configuration to point to the new instance.
You should instead replace the old version with the new one. See the Upgrading docs for details.
I am using SonarQube 5.1.2. I have created many custom rules using Rule Templates for quality profiles of both Java (plugin version 3.13.1) and C# (4.3) languages. I wanted to replicate this SonarQube instance onto a new server and hence did a Backup of the quality profiles and performed 'Restore Profile' on the new SonarQube server.
Strangely, all the custom rules are not imported on to the new SonarQube instance. Why is it so? What should I do to import the custom rules onto new SonarQube instance?
You're looking for SONAR-5366
Make it possible to back up and restore customizations of rules, which is not yet implemented, unfortunately.
Is there a way to automate/script creation of new dashboards in SonarQube, either via the webservice api or some other means?
I have a need to create dashboards per future releases (Dashboard for Release 1, Dashboard for Release 2 etc) where each release is worked on as a Stream in RTC. This would be easier if the analysis was running against trunk, but this is not how the project is currently structured using a branch/stream strategy.
Currently, as we move to a new future release which is being worked on in a future Stream, I need to recreate an analysis job in Jenkins, and create a new Dashboard against that analysis.
The dashboards are configured with the same widgets each time, but pointing to a different analysis project/results.
Is there a way I can automate creation of a new Dashboard? I see there's a GET api/dashboards/show but what I'm looking for is an api to create, or clone from existing dashboard?
We're using SonarQube 5.1.
A project-level dashboard is a template that is filled with each project's data as you navigate to it. You create it once, and it applies to every project automatically.
It sounds to me like you'll be analyzing the branches of a project. As long as you differentiate them by setting a unique sonar.branch value for each one, the rest should just work. Each branch will show up as a unique "project" in SonarQube - with all the same features, navigation, and yes dashboards as every other project.
Note that there are two types of dashboards: global dashboards project dashboards. Correspondingly, there are two types of dashboard widget: global and project.
You can put either type of widget on either type of dashboard, but if you put a project widget on a global dashboard, it will make you configure a project - because it can't just pick up which project it should show from context.
Put it on a project dashboard, though, and it will automatically display data from the current project.
To create a project dashboard in version 5.1.2, first navigate to a project, then More > Manage Dashboards. There, you'll be able to create, configure, and share project-level dashboards with project-level widgets that just automatically show data from the current project context.
EDIT
Note that dashboards were removed in 6.2, so the directions above are only relevant for versions earlier than that.
Is there a way to run a Sonar 5.1.1 Analysis completely in the Dashboard GUI?
If not what are the steps to run it otherwise? I can't seem to find a document that walks you through the steps.
The Sonar Server / Dashboard / GUI is just used to display data, not to collect data (this old blog post explains the sonar architecture).
To collect data you can use maven, gradle, ant or sonar-runner for other projects. The documentation that guides you is in ... the sonar documentation :) - see the child pages, as they explain the details of how to configure the technologies I mentioned above.
I suggest you to also have a read at the configuration parameters you can pass, as the docs are not super clear about them.