Configuring pull request decoration for SonarQube Cloud using Azure DevOps

Time to complete icon30 minutes to complete

Overview

This course teaches you how to integrate SonarQube Cloud's pull request (PR) decoration and PR blocking features directly into Azure DevOps PRs. By configuring PR decoration, you'll enhance the efficiency, security, and quality of your software development.

Learning objectives

After completing this course, you’ll be able to:

  • Configure the Azure DevOps pull request decoration feature with SonarQube Cloud to display results directly in your pull requests.
  • Configure pull request blocking by using SonarQube quality gate enforcement.

Key topics

  • Prerequisites for PR decoration
  • Enhancing your code review with PR decoration 
  • Configuring SonarQube Cloud 
  • Configuring Azure DevOps
  • Testing PR decoration
  • Preventing a PR merge when a quality gate fails
  • Additional resources and troubleshooting tips

Target audience

  • DevOps engineer
  • Developer
  • Engineering leader
  • Analyst

Prerequisites

  • Complete the course: Configuring code analysis for SonarQube Cloud with Azure DevOps Pipelines
  • If using Azure DevOps Pipelines with GitHub, complete the course: Configuring pull request decoration for SonarQube Cloud with Azure DevOps pipelines and GitHub Action