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, the open-source solution for helping developers write Clean Code.

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-2024 SonarSource.

Licensed under the GNU Lesser General Public License, Version 3.0