Project homepage: http://redirect.sonarsource.com/plugins/jenkins.html
Continuous inspection: http://nemo.sonarsource.org/dashboard/index/org.jenkins-ci.plugins:sonar
Issue tracking: http://jira.sonarsource.com/browse/SONARJNKNS
If you're wanting to make changes, please clone the git repository at
git://github.com/SonarSource/jenkins-sonar-plugin.git
With jenkins-sonar-plugin, you can configure SonarQube instances and run a SonarQube 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 Sonar Runner job;
- Using MSBuild SonarQube Runner's 'begin analysis' and 'end analysis' jobs;
SonarQube Runner and MSBuild SonarQube Runner are managed as installable tools. List of available versions is retrieved automatically by Jenkins/Hudson from a json file hosted on their respective update site:
- http://hudson-ci.org/updates/hudson.plugins.sonar.SonarRunnerInstaller.json
- http://mirrors.jenkins-ci.org/updates/updates/hudson.plugins.sonar.SonarRunnerInstaller.json
- http://mirrors.jenkins-ci.org/updates/updates/hudson.plugins.sonar.MsBuildSonarQubeRunnerInstaller.json
For Jenkins, the files are automatically updated when a new version of Sonar Runner or MSBuild SonarQube Runner is published, thanks to crawlers written in groovy:
- https://github.com/jenkinsci/backend-crawler/blob/master/sonarrunner.groovy
- https://github.com/jenkinsci/backend-crawler/blob/master/msbuildsonarquberunner.groovy
For Hudson, it seems it is a manual process and we should ask on the hudson dev mailing list for someone to update the json file.