Skip to content

SonarSource/sonar-scanner-jenkins

Repository files navigation

SonarQube Scanner for Jenkins

Quality Gate Jenkins Plugin Jenkins Plugin Installs

This plugin allows easy integration in Jenkins projects of SonarQube (Server, Cloud) and SonarQube Community Build.

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:

The files are automatically updated when a new version of SonarScanner or SonarScanner for MSBuild is published, thanks to crawlers written in groovy:

License

Copyright 2007-2025 SonarSource.

Licensed under the GNU Lesser General Public License, Version 3.0