| Wiki Markup |
|---|
{iframe:src=http://update.sonarsource.org/plugins/trac.html|width=700|height=250|frameborder=0}
Your browser does not support iframes.
{iframe} |
| Note |
|---|
| title | Upgrade from 0.1 to 0.2 |
|---|
|
Note that during upgrade from 0.1 to 0.2 you will lose history of measures (due to issue SONARPLUGINS-654) and you should manually remove old version (SONARPLUGINS-885). |
Description / Features
This plugin uses the Trac XML-RPC plugin to connect to a Trac instance and display metrics about open tickets. It can also drill down to the component level.
Installation
...
- Install the Trac plugin through the Update Center or download it into the SONAR_HOME/extensions/plugins
...
- directory
- Restart the Sonar server
Usage
Install and enable the Trac XML-RPC plugin on your Trac instance. You will need to give an anonymous or user account 'XML_RPC' and 'TICKET_VIEW' privileges.
A user (working with trac 0.11.7) has reported in Sonar's mailing list that the HttpAuthPlugin should be also installed, so if you get the following error Trac: XmlRpcException (possibly missing authentication details?) install it as well.
The Trac instance URL can be specified in two places:
Note: component name is completely optional, if you don't specify one you will get the number of tickets over the whole instance. There is also no validation of the component name, so if you specify a non-existent component name, no tickets will be found.
Running
...
Analysis
To kick-off the analysis, run mvn sonar:sonarsee Analyzing Source Code.
Known
...
Limitations
- While the Trac instance URL can be picked up from your project's pom.xml file the username/password/component have to be specified within the project settings in Sonar.
...
Change Log
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 0. |
|---|
|
...
...
...
| static | | width | 900 |
|---|
| columns | type;key;summary;priority |
|---|
|
...
| | url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=19043&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 0.2 |
|---|
| renderMode | static |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17040&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 0.1 |
|---|
|
...
...
| static | | width | 900 |
|---|
| columns | type;key;summary;priority |
|---|
|
...
| | url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16719&pid=11911&sorter/field=issuekey&sorter/order=DESC&tempMax=1000 |
|---|
|