Configuring merge request decoration for SonarQube Server with GitLab

Time to complete icon30 minutes to complete

Overview

This course teaches you how to integrate SonarQube Server with your GitLab CI/CD pipelines to implement merge request (MR) decoration and merge blocking. This integration is designed to make your code reviews more efficient and lead to a more secure codebase.

Learning objectives

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

  • Configure the GitLab merge request decoration feature with SonarQube to display results directly in your merge requests.
  • Configure merge request blocking by using SonarQube quality gate enforcement.

Key topics

  • Enhancing your code review with MR decoration 
  • Configuring SonarQube Server 
  • Configuring GitLab 
  • Testing MR decoration 
  • Preventing an MR when a quality gate fails 

Target audience

  • DevOps engineer
  • Developer
  • Engineering leader
  • Analyst

Prerequisites

  • Configuring code analysis for SonarQube Server with GitLab CI/CD