nevincansel
nevincansel

Reputation: 23

Teamcity - Sonar Scanner for Msbuild "Insufficient Privilege" Error

I tried to integrate Sonar Scanner for Ms Build with Teamcity. But there is problem in finish analysis step. I configured SonarQube.Analysis.xml file with sonar.login, sonar.password and sonar.host.url as it is showed on sonarqube website. But it gives error.

SonarQube Begin Analysis Step

SonarQube Finish Analysis Step

Error logs

I tried to restart server, clean caches, running msbuild on command line. And when I try to post a request to SonarQube url via postman, it was able to create project on SonarQube without codes and my credential worked well.

However, when I try to run SonarQube on Teamcity, it gives "Insufficient Privilege" error.

Do you have any suggestions?

Thanks in advance.

Upvotes: 2

Views: 528

Answers (1)

Jeroen Heier
Jeroen Heier

Reputation: 3694

In order to use the SonarQube steps you have to define a token for an user who has execute analysis rights. You use this token as login; this is the preferred way (the password should be empty). See also the User Token documentation page.

Upvotes: 2

Related Questions