Reputation: 23
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 Finish Analysis Step
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
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