JetBrains / TeamCity.SonarQubePlugin

A plugin for TeamCity server allowing you to configure and run SonarQube analysis from the CI
Apache License 2.0
53 stars 31 forks source link

Cannot analyze projects when Sonar requires authentication #4

Closed d9pouces closed 9 years ago

d9pouces commented 9 years ago

If Sonar is configured to require authentication, then the Sonar Runner always fails:

Caused by: Not authorized. Analyzing this project requires to be authenticated. Please provide the values of the properties sonar.login and sonar.password.

The configuration of this plugin should include these two values (login and password), in addition of the database settings.

Linfar commented 9 years ago

As a workaround you can provide these values in the build step "Additional parameters".

Linfar commented 9 years ago

Added 'Login' and 'Password' properties to the SonarQube Server profile. You can update the plugin from http://teamcity.jetbrains.com/viewLog.html?buildId=158969&buildTypeId=TeamCityPluginsByJetBrains_TeamCitySonarQubePlugin_Build&tab=artifacts

d9pouces commented 9 years ago

Thank you very much!