Skip to end of metadata
Go to start of metadata
NameJenkins Plugin
Latest version2.1 (18 April 2013)
Download

Use Jenkins Update Center

LicenseGNU LGPL 3
DevelopersSonarSource
Issue trackerSONARPLUGINS/component/13726
Sourceshttps://github.com/SonarSource/jenkins-sonar-plugin

Matrix Compatibility

Plugin

2.1

Jenkins

1.491+

Description / Features

The plugin enables to trigger Sonar analysis from Jenkins.

It offers two different ways to trigger a Sonar analysis:

  • Build step to trigger the analysis with the Sonar Runner
  • Post-build action to trigger the analysis with Maven

Installation

Prerequisites: Sonar and Jenkins must be installed.

Install the Sonar Jenkins plugin via the Jenkins Update Center. Before upgrading please read the upgrade guide.

Usage

  1. Configuring Sonar Jenkins Plugin
  2. Triggering a Sonar analysis from Jenkins:
    1. Triggering a Sonar analysis with the Sonar Runner
    2. Triggering a Sonar analysis with Maven

Advanced Topics

Change Log

Version 2.1 (14 issues)
Type Key Summary Priority
Bug SONARJNKNS-33 Sonar Link on Jenkins project points to a different location Major
Bug SONARJNKNS-54 Jenkins Sonar plugin: link does not resolve job parameters Major
Bug SONARJNKNS-77 A freestyle jobs private local Maven is not used Major
Bug SONARJNKNS-99 Incorrect link to Sonar Dashboard for project Major
Bug SONARJNKNS-137 Update documentation Major
Bug SONARJNKNS-151 use same logic as maven-plugin to resolve alternate settings.xml Major
Bug SONARJNKNS-147 Property sonar.branch should be taken from pom.xml for link to dashboard Major
Bug SONARJNKNS-159 Change the description of the Sonar Jenkins plugin Major
Bug SONARJNKNS-176 Url to Sonar project dashboard not added to project side bar with Freestyle Job Major
Bug SONARJNKNS-178 Stop supporting Hudson Major
Bug SONARJNKNS-192 Support task in Sonar Runner build step Major
Bug SONARJNKNS-129 Update ciManagement data in pom.xml Minor
Bug SONARJNKNS-142 Use URL displayed in logs to display Sonar project URL Minor
Bug SONARJNKNS-152 The CI jobs are failing when ~/.m2/settings.xml are not present Minor

 

Version 2.0.1 (4 issues)
Type Key Summary Priority
Bug SONARJNKNS-15 Unable to load the sonar-project.properties file when the location of the file is relative to the project root directory Critical
Bug SONARJNKNS-58 Slash preceding value for location of sonar-project.properties Major
Bug SONARJNKNS-140 Add two new fields 'sonar.login' and 'sonar.password' to the configuration of a Sonar server Major
Bug SONARJNKNS-76 Running a standalone Sonar analysis fail if project is not at the root of the workspace Minor

 

Version 2.0 (9 issues)
Type Key Summary Priority
Bug SONARJNKNS-79 "Skip if environment variable is defined" doesn't work for environment variable Critical
Bug SONARJNKNS-29 Command line parameters ignored on Windows when an argument contains & Major
Bug SONARJNKNS-57 Environment Variables not taken into account in "Additional properties" field Major
Bug SONARJNKNS-82 Changing name of Sonar server do not change the name in jobs Major
Bug SONARJNKNS-118 Allow to use external sonar-runner Major
Bug SONARJNKNS-181 Make it possible to select a different JVM to launch the Sonar analysis that the one used by default in the Jenkins job Major
Bug SONARJNKNS-194 Upgrade to the lastest Sonar Runner Major
Bug SONARJNKNS-173 In the Jenkins Global Configuration page, make it clear that the "Trigger exclusions" mechanism only relates to the Sonar Post-Build action Minor
Bug SONARJNKNS-172 Improve french localization Minor

 

Version 1.8.1 (1 issues)
Type Key Summary Priority
Bug SONARJNKNS-40 Hudson-Sonar plugin v1.8 fails to execute the sonar-runner task Major

 

Version 1.8 (5 issues)
Type Key Summary Priority
Bug SONARJNKNS-14 Comments are not stripped out from properties field Major
Bug SONARJNKNS-34 Sonar icon added multiple times to build history when Sonar is run multiple times within job Major
Bug SONARJNKNS-60 Using Jenkins, passing a "|" delimited list of values in the Additional properties fails to send maven goal Major
Bug SONARJNKNS-100 Create migration script for sonar "light" jobs of version 1.6.X of the plugin Major
Bug SONARJNKNS-133 Embed Sonar Runner version 1.2 Major