Matrix Compatibility
Description / Features
The plugin enables to trigger Sonar analyses SonarQubeanalysis from Jenkins/Hudson.
It offers two different ways to trigger the Sonar analysesan analysis:
- Build step to trigger the analyses analysis with the Sonar SonarQube Runner
- Post-build action to trigger the analyses analysis with Maven
Installation
Prerequisites: Sonar SonarQube and Jenkins must be installed.
Install the Sonar SonarQube Jenkins plugin via the Jenkins Update Center. Before upgrading please read the upgrade guide.
Usage
- Configuring Sonar SonarQube Jenkins Plugin
- Triggering a Sonar SonarQube analysis from Jenkins:
- Triggering a Sonar SonarQube analysis with the Sonar SonarQube Runner
- Triggering a Sonar SonarQube analysis with Maven
Advanced Topics
- Reassign Jobs to Another Sonar SonarQube Instance
- If you want to build the Sonar SonarQube Jenkins plugin, you can find the documentation here.
Change Log
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release Version 2.01 |
|---|
| 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+%22JENKINS-2.0.1%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 2.0 |
|---|
| height | 60 |
|---|
| renderMode | static |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINSSONARJNKNS+AND+fixVersion+%3D+%22HUDSON-2%222.0%221%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
...
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1Version 2.80.1 |
|---|
| height | 7060 |
|---|
| renderMode | static |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINSSONARJNKNS+AND+fixVersion+%3D+%22HUDSON-1%222.80.1%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
...
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1Version 2.80 |
|---|
| height | 7060 |
|---|
| renderMode | static |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINSSONARJNKNS+AND+fixVersion+%3D+%22HUDSON-1%222.8%220%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
...
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release Version 1.78.21 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINSSONARJNKNS+AND+fixVersion+%3D+%22HUDSON-1%221.78.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 |
|---|
| width | 900 |
|---|
| 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 |
|---|
| width | 900 |
|---|
| 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 |
|---|
|
| Warning |
|---|
|
| Don't use this version as it contains critical bug - SONARPLUGINS-1455 |
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release 1.6.1 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| width | 900 |
|---|
| 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 |
|---|
| renderMode | static |
|---|
| width | 900 |
|---|
| 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 |
|---|
| width | 900 |
|---|
| 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 |
|---|
| width | 900 |
|---|
| 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 |
|---|
| width | 900 |
|---|
| 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+1%22+AND+status+%3D+Closed+ORDER+BY+priority+DESC&tempMax=1000 |
|---|
|
...
| JIRA Issues |
|---|
| anonymous | true |
|---|
| title | Release Version 1.2.28 |
|---|
| height | 70 |
|---|
| renderMode | static |
|---|
| width | 900 |
|---|
| columns | type;key;summary;priority |
|---|
| url | http://jira.codehaus.org/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+SONARPLUGINSSONARJNKNS+AND+fixVersion+in+("HUDSON-1.2.2",+"HUDSON-1.2.1",+"HUDSON-1.2")+%3D+%221.8%22+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 |
|---|
| width | 900 |
|---|
| 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 |
|---|
| width | 900 |
|---|
| 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 |
|---|
| width | 900 |
|---|
| 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 |
|---|
|