Description / Features
The plugin enables to trigger Sonar analyses from Jenkins/Hudson.
It offers two different ways to trigger the Sonar analyses:
- Build step to trigger the analyses with the Sonar Runner
- Post-build action to trigger the analyses 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
- Configuring Sonar Jenkins Plugin
- Triggering a Sonar analysis from Jenkins:
- Triggering a Sonar analysis with the Sonar Runner
- Triggering a Sonar analysis with Maven
Advanced Topics
Change Log
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 2.0 |
|---|
| height | 60 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22HUDSON-2.0%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 2.0 |
|---|
| height | 60 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22HUDSON-2.0%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.8.1 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22HUDSON-1.8.1%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.8 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22HUDSON-1.8%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.7.2 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+%3D+%22HUDSON-1.7.2%22+ORDER+BY+updated+DESC%2C+priority+DESC%2C+created+ASC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.7.1 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=18050&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.7 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17499&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.6.1 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=17072&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.6 |
|---|
| height | 270 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16345&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.5 |
|---|
| height | 90 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16312&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| Warning |
|---|
| Before upgrade please make a backup of your Hudson configuration and carefully read following notes. |
| Note |
|---|
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: | Code Block |
|---|
import hudson.model.*
import hudson.maven.*
import hudson.tasks.*
for(item in Hudson.instance.items) {
println("JOB : "+item.name);
if (item instanceof MavenModuleSet) {
println(">MAVEN MODULE SET");
item.save();
} else if(item instanceof FreeStyleProject) {
println(">FREESTYLE PROJECT");
item.save();
}
println("\n=======\n");
}
|
|
| Note |
|---|
If you are using version below 1.2, then:- download version 1.2.2 or 1.3.1
- perform manual upgrade, using
Manage Plugins -> Advanced -> Upload Plugin - perform automatic upgrade to version 1.4 (see instructions above)
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.4 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=16255&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.3.1 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+in+("HUDSON-1.3.1",+"HUDSON-1.3")+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.2.2 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINS+AND+fixVersion+in+("HUDSON-1.2.2",+"HUDSON-1.2.1",+"HUDSON-1.2")+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
| Warning |
|---|
| This version introduces some changes to configuration files. Upgrade will be performed automatically, but before upgrade please make a backup of your Hudson configuration. |
| Note |
|---|
| Most probably next plugin version will be incompatible with versions below 1.2, so it's highly recommended to update to this version. |
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.2.1 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=15346&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| Note |
|---|
| 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. |
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.0.1 |
|---|
| height | 90 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=15303&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.0 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?fixfor=14982&pid=11911&sorter/field=priority&sorter/order=DESC&tempMax=1000 |
|---|
|