Configuring Git Author Tracking in SonarQube

This guide covers how to configure GitLab, Azure DevOps, and Jenkins pipelines to show Git author information in SonarQube analysis.

Sonarqube Author Setup

Sonarqube Server Settings

  • Go to: Administration > SCM

  • Ensure SCM is disabled

1. Git Installation Check

Ensure Git is installed on the Sonarqube server.

2. CI/CD Setup

GitLab

stage: testAndSonar
image: oobeya.azurecr.io/...

variables:
  GIT_DEPTH: "0"

script:
  # ...

Alternatively:

Azure DevOps

Jenkins

Checkout Stage (Optional)

SonarQube Analysis Stage (Must Use)

Last updated

Was this helpful?