azureazure-devopsazure-pipelinessonarqubesonarqube-scan

Azure Devops Pipeline, show link do Sonar report on the summary page of Pipeline Run


I have a Azure Devos Pipeline, which in one of the stages is running Sonar report. After runnig the Pipeline summary page looks like: enter image description here

I would like to include the Sonar report link on this first page somewhere (in Jenkins I was able to have the link on the left menu, easy reachable after each job run) What I have to do now in order to find the link is to go inside the specific stage, find the job which is runnig the report, go to the logs and find the link there:

enter image description here

Is there a way to either add the link somewhere on summary tab, or add additional tab with a link for Azure Pipeline?


Solution

  • You can use SonarQubePublish@6 (SonarQube) or the SonarCloudPublish@2 (SonarCloud) tasks to publish quality gate result.

    After running the pipeline you should find a link to the analysis report in Build Summary > Extensions tab:

    SonarCloud Analysis Report

    See Driving continuous quality of your code with SonarCloud for more details.