Articles → AZURE DEVOPS → Integrate Sonarcloud With Azure Devops

Integrate Sonarcloud With Azure Devops






Setting Up The Connection Between Azure Devops And Sonarcloud





Steps




  1. Creating the token
  2. Create an organization.
  3. Create the project
  4. Create the pipeline in Azure DevOps
  5. Queue build

Create The Token






Picture showing a screen to add a new token

Click to Enlarge



Picture showing the create a new personal token screen

Click to Enlarge



Picture showing the success message and the generated token

Click to Enlarge


Create An Organization




Picture showing the My Account option in the menu

Click to Enlarge



Picture showing the Organizations tab of the My Account page

Click to Enlarge



Picture showing the Create an organization screen

Click to Enlarge



Picture showing the screen to specify the key

Click to Enlarge



Picture showing the screen to choose the plan

Click to Enlarge




Create The Project




Picture showing a screen to create a new project

Click to Enlarge



Picture showing a screen to select the project from the Azure DevOps

Click to Enlarge



Picture showing a screen to set the analysis method

Click to Enlarge



Picture showing a screen to install sonarcloud extension from marketplace

Click to Enlarge

Picture showing a screen to specify the build

Click to Enlarge




Create The Pipeline In Azure Devops




Picture showing the New pipeline button for creating a new pipeline

Click to Enlarge



Picture showing a screen to specify the repository

Click to Enlarge



Picture showing a screen where Azure Repos Git repository is selected

Click to Enlarge



Picture showing a screen to select the template

Click to Enlarge



Picture showing a screen to add a new task

Click to Enlarge



Picture showing adding the tasks Publish Quality Gate Result, Prepare Analysis Configuration and Run Code Analysis

Click to Enlarge



Picture showing changing the order of the tasks

Click to Enlarge



Picture showing specifying the Sonarqube Service Endpoint, Organization and Project Key in Publish Quality Gate Result task

Click to Enlarge




Queue Build




Picture showing the build has been started

Click to Enlarge



Picture showing the code analysis in sonarcloud.io

Click to Enlarge


Java_Home Exists But Does Not Point To A Valid Java_Home Sonar







Posted By  -  Karan Gupta
 
Posted On  -  Friday, July 30, 2021

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250