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:
- 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-2024 SonarSource.
Licensed under the GNU Lesser General Public License, Version 3.0