This Jenkins plugin connects Jenkins jobs and pipelines to SonarQube Server, SonarQube Cloud, or SonarQube Community Build so they can run code quality and security analysis.
Choose the relevant documentation below, or learn more about the SonarQube product family.
Documentation and changelog:
If you want to make changes, please clone the Git repository.
With this plugin, you can configure SonarQube instances and run a Sonar Scanner analysis in several ways:
- By injecting the SonarQube configuration as environment variables and using them in any job step (such as Maven, Ant, Gradle, ...)
- Using the SonarQube Scanner build step
- Using SonarScanner for MSBuild analysis steps
'SonarQube Scanner' and 'SonarScanner for MSBuild' are managed as installable tools. List of available versions is retrieved automatically by Jenkins from a json file hosted on the update site:
- https://updates.jenkins.io/updates/hudson.plugins.sonar.SonarRunnerInstaller.json
- https://updates.jenkins.io/updates/hudson.plugins.sonar.MsBuildSonarQubeRunnerInstaller.json
The files are automatically updated when a new version of SonarScanner or SonarScanner for MSBuild is published, thanks to crawlers written in groovy:
- https://github.com/jenkins-infra/crawler/blob/master/sonarqubescanner.groovy
- https://github.com/jenkins-infra/crawler/blob/master/sonarqubescannermsbuild.groovy
Copyright 2007-2025 SonarSource.
Licensed under the GNU Lesser General Public License, Version 3.0