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

Run SonarQube Analysis fails on TeamCity 10 #23

Closed bsiegel closed 7 years ago

bsiegel commented 8 years ago

Just upgraded to TeamCity 10 and builds with the Run SonarQube Analysis step are failing. In the log I see:

Parameter "secure:teamcity.password.33815514-c1a4-489b-9c52-b550fcc4e00f.sonarPassword" is undefined.
Parameter "secure:teamcity.password.33815514-c1a4-489b-9c52-b550fcc4e00f.sonar.jdbc.password" is undefined.

<snip>

ERROR: Unable to execute Sonar
ERROR: Caused by: Not authorized. Please check the properties sonar.login and sonar.password.

I tried removing my Sonar server and re-adding it, but this didn't fix the issue.

dotned commented 8 years ago

I've had this also. I didn't manage to find a fix but I did mange to get further when I set these as additional properties. Not ideal but as a temp workaround may help. Until the issue is fixed of course.

-Dsonar.login=xxxxx -Dsonar.password=xxxxx

I have also upgraded to Sonar 5.6 which is causing other issues.

mvossi commented 8 years ago

For the workaround mentioned before, enter these two properties in: Build Step > SonarQube Runner > Additional Parameters

pavelsher commented 8 years ago

Please try installing this version of the plugin: https://teamcity.jetbrains.com/viewLog.html?buildId=829128&tab=artifacts&buildTypeId=TeamCityPluginsByJetBrains_TeamCitySonarQubePlugin_Build100x

bsiegel commented 8 years ago

@pavelsher That build appears to fix the issue, thanks!

dotned commented 8 years ago

@pavelsher works for me as well.

ddatsh commented 8 years ago

@pavelsher ,I reinstall the plugin,see version=100 in teamcity 10,and still ERROR: Caused by: Not authorized. Please check the properties sonar.login and sonar.password.

jdk 8u102 sonar 5.6.1

gaurarpit12 commented 7 years ago

I am trying to run sonarqube on a .net project in teamcity. But my step is failing and I am getting the following as the build log: image

sshuliar commented 7 years ago

Similar issue after update to 10.0.1 (build 42078) sonar-plugin version is 31

capture11

gaurarpit12 commented 7 years ago

@sshulisr Firstly stop the sonar service, then try running sonarquebe on different port.

Linfar commented 7 years ago

@sshulisr Is your SonarQube Server running on the same machine where TeamCity Agent is runnnig?

Linfar commented 7 years ago

I'm closing this ticket as initial problem was solved. Please open a new one if needed.