Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version. Compare with Current ·  View Page History

This plugin will help you to configure your Jenkins/Hudson instance with Sonar.

Before upgrading to 1.7.1, please read the upgrade guide

Below are the main steps to quickly get started.
You will find the links to the rest of the documentation at the end of this page.

Name

Hudson/Jenkins Plugin

Latest version

1.7.1

Download

Use Hudson/Jenkins Update Center

Authors

SonarSource

Jira

http://jira.codehaus.org/browse/SONARPLUGINS/component/13726

License

LGPL v3

Sources

https://github.com/SonarSource/jenkins-sonar-plugin

Compatibility matrix

Plugin

1.0

1.1

1.2.2

1.3.1

1.4+

1.7+

Sonar

1.8+

1.8+

1.8+

1.8+

1.8+

2.6+

Hudson/Jenkins

1.306+

1.317+

1.341+

1.344+

1.344+

1.344+

Installation

  1. Install and start Jenkins
  2. Install and start Sonar
  3. Jenkins/Hudson plugin via the Update Center
  4. Configure the Sonar parameters in Jenkins
  5. Activate Sonar analysis on your Jenkins jobs
  6. Build your projects
  7. See the results in Sonar

Upgrade guide

Usage guide

Usage & Installation

  1. Install and start the Sonar server
  2. Activate the Sonar plugin from the Hudson/Jenkins Plugin Manager
  3. Define a Sonar installation from the Configure System page. Some Advanced parameters are used when overriding default Sonar configuration.
  4. Activate Sonar on jobs from the "Post-build actions" section.
  5. Build your project

    We recommend to execute Sonar at the most on nightly builds. It's useless to activate it on continuous builds.

  6. View your project in Sonar application (default is http://localhost:9000)

Changelog

Release 1.7.1 (November 2, 2011)

Release 1.7 (October 28, 2011)

Don't use this version as it contains critical bug - SONARPLUGINS-1455

Release 1.6.1 (January 12, 2011)

Release 1.6 (January 11, 2011)

Release 1.5 (March 22, 2010)

Release 1.4 (March 13, 2010)

Before upgrade please make a backup of your Hudson configuration and carefully read following notes.

If you are using version above 1.2, then before upgrade make sure that your jobs was saved with proper configuration. In order to do it, execute following script from Hudson Script Console:

If you are using version below 1.2, then:

  1. download version 1.2.2 or 1.3.1
  2. perform manual upgrade, using Manage Plugins -> Advanced -> Upload Plugin
  3. perform automatic upgrade to version 1.4 (see instructions above)

Release 1.3.1 (February 27, 2010)

Release 1.2.2 (February 3, 2010)

This version introduces some changes to configuration files. Upgrade will be performed automatically, but before upgrade please make a backup of your Hudson configuration.

Most probably next plugin version will be incompatible with versions below 1.2, so it's highly recommended to update to this version.

Release 1.1 (August 1, 2009)

When upgrading to this version, please be aware that "Skip on SCM build" (Default Yes) is becoming "Poll SCM" (Default No) under Triggers section. Due to technical limitation, this data could not be migrated to 1.1, and therefore if it was unchecked in certain jobs, the new box should be manually checked.

Release 1.0.1 (June 3, 2009)

Release 1.0 (May 20, 2009)

Labels
  • None