Insufficient privileges error with sonarRunner Insufficient privileges error with sonarRunner jenkins jenkins

Insufficient privileges error with sonarRunner


The issue appears to be a bug in the Sonar Server 5.0 release.

https://jira.codehaus.org/browse/SONAR-6091

In order to work around it the 'SEE SOURCE CODE' project permissions can be set to include 'Anyone' from the admin page as in the below screen shot:

enter image description here

Obviously, this is not ideal in an unprotected environment because the source code can be viewed by anyone with access to the Sonar server API, but hopefully its addressed in the 5.1 release of Sonar Server.


The problem for me (Sonar 6.1) was caused by the creation of the project in SonarQube: at the first execussion of the scanner, it creates the corresponding project in SonarQube, what I didn't allow for all users...

Restore the right for creating projects allow the scanner to successfully work.