Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can see real life example of this plugin on Nemo: http://nemo.sonarsource.org/project/index/org.codehaus.sonar:sonar:sonar

Usage & Installation

  1. Place the jar into /extensions/plugins/ directory
  2. Restart Sonar Web server
  3. Specify your Continuous Integration Server Job URL:
    • within your pom.xml
      Example for Bamboo:

      Code Block
      xml,titlepom.xml
      <ciManagement>
        <system>Bamboo</system>
        <url>http://ci.codehaus.org/browse/SONAR-DEF</url>
      </ciManagement>
      

      Example for Hudson:

      Code Block
      xml,titlepom.xml
      <ciManagement>
        <system>Hudson</system>
        <url>http://hudson.glassfish.org/job/hudson/</url>
      </ciManagement>
      
    • or via Sonar Settings (Project/Module Settings -> Build Stability -> CiManagement)
      Example for Bamboo:

      Code Block
      Bamboo:http://ci.codehaus.org/browse/SONAR-DEF

      Example for Hudson:

      Code Block
      Hudson:http://hudson.glassfish.org/job/hudson/
  4. Specify Username and Password (Global/Project/Module Settings -> Build Stability) if needed
  5. Launch a new quality analysis and the metrics will be fed

...