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

unrecognised sonar.projectKey and sonar.sources #34

Closed grove825 closed 7 years ago

grove825 commented 7 years ago

Get a Error: ERROR: Caused by: You must define the following mandatory properties for 'Unknown': .projectKey, .sources

but I did provided it: C:\TeamCity\buildAgent\plugins***-plugin-agent***-qube-runner\bin***-runner.bat -Dproject.home=. -D.host.url=http://localhost/ -D.jdbc.url=jdbc:mysql://localhost:3306/?useUnicode=true&useConfigs=maxPerformance -D.jdbc.username= -D.jdbc.password= -D.projectKey=Fab -D.projectName=UnitTests -D.projectVersion=135 -D.sources=Fab -D.password= -D.login= -D.python.coverage.reportPath=cov.xml

TeamCity 10.0.3 SonarQube 6.1

Linfar commented 7 years ago

@grove825 I've reproduced your problem. As a workaround you can remove '&useConfigs=maxPerformance' from your jdbc url or add escaping for '&' symbol.

Linfar commented 7 years ago

@grove825 Fix is ready, you can download updated plugin from here