Skip to content
| Marketplace
Sign in
Azure DevOps>Azure Pipelines>SonarQube Metrics Report
SonarQube Metrics Report

SonarQube Metrics Report

solucionespsg

|
49 installs
| (2) | Free
The SonarQubeMetricsReport VSTS task uploads report files as attachments to an Azure DevOps wiki.
Get it free

SonarQube Metrics Report

The SonarQubeMetricsReport VSTS task generates a historical report of all sonar runs performed on the project/branch. It compares the first run with the last, showing the differences. It generates a graph showing the evolution of the project.

Documentation

Prerequisites:

SonarQube installed and running.

Token with permissions to access SonarQube.

Configure the tasks in YAML:

steps:
- task: solucionespsg.SonarQubeMetricsReport.psg.SonarQubeMetricsReport.SonarQubeMetricsReport@0
  displayName: 'SonarQube Metrics Report'
  inputs:
    proyUrl: 'https://urlsonar.com/'
    proyKey: '$(ArtifactName)'
    proyNombre: '$(ArtifactName)'
    proyBranch: '$(Build.SourceBranchName)'
    proyToken: '$(tokensonarqube)'
    archivoHtml: '$(Common.TestResultsDirectory)/sonarqube_metrics.html'

Configure the tasks for classic editor

alt tag

Url of SonarQube: Url of Sonar

Key of SonarQube project: The key of SonarQube project

Name of SonarQube project: (Optional) Name of SonarQube project

Commit branch: Name of the commit branch. DefaultValue: $(Build.SourceBranchName)

Token to access of SonarQube: Token to access of SonarQube

Path and name of report: Path and name of report html. DefaultValue: $(Common.TestResultsDirectory)/sonarqube_metrics.html

Results

alt tag

alt tag

Upload report to azure wiki:

Use: Upload Report To Azure Devops Wiki

alt tag

Help to continue development.

If it helped you. You can help me:

https:// paypal.me/solucionespsg

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft