The plugin is quite easy to use. Once you have setup your SonarQube servers, you just need to use the SonarQube Connector Macro to setup the resource you want to get metrics from.
You have to complete two parameters:
- SonarQube server: this is a dropdown list with the SonarQube servers configured through the plugin settings.
- Resource Key: this is the key of the SonarQube resource to retrieve the quality metrics. You can get this key from your SonarQube project dashboard or your sonar-project analysis parameters.
- Note: Enterprise portfolio are also supported you can enter the portfolio name here.
- Custom metrics: List of custom metric keys to display in the page, you can specify one metric key or a list of metric keys separated by commas. For example: blocker_violations, major_violations, classes. Check with your SonarQube administrator to find out the keys to the available metrics
- Branch: Name of the branch (visible in the SonarQube UI)
- Only available on single project configuration
Setting multiple resource keys