This plugin allows easy integration in Jenkins projects of SonarQube (Server, Cloud) and SonarQube Community Build.
![](/SonarSource/sonar-scanner-jenkins/raw/master/images/SonarQube_light.png)
SonarQube Server, Cloud and SonarQube Community Build are widely used static analysis solutions for continuous code quality and security inspection.
They help developers detect coding issues in 30+ languages, frameworks, and IaC platforms, including Java, JavaScript, TypeScript, C#, Python, C, C++, and many more.
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