vanderby / SonarQube-AzureAppService

Instructions and files to host SonarQube on an Azure App Service without a container.
MIT License
90 stars 165 forks source link

SQ comments all lines in sonar.properties when restarted #18

Closed lopeg closed 5 years ago

lopeg commented 5 years ago

Hello Thank you for great config. I have very strange case. i update sonar.properties. (sql connection info), restart SQ (both as web app from azure portal or from SQ UI) and it just comments my string. not replaces, but comment. every time i restart SQ Can you please help me in fixing that?

vanderby commented 5 years ago

Sounds like a bug in my logic.

As a work around for now you should be able to set the same properties in the App Settings of the Web App and it will set the matching settings in the sonar.properties file.

lopeg commented 5 years ago

and this could help you in fixing bug. it not only commenst, but also it replaces all 'sonar' words by '#sonar.' by regexp

for example i set line: sonar.jdbc.url=jdbc:sqlserver://my-sonarqube.database.windows.net,1433;databaseName=sonar;encrypt=true;

after restart it is transformed to:

sonar.jdbc.url=jdbc:sqlserver://my-#sonar.ube.database.windows.net,1433;databaseName=#sonar.encrypt=true;

take a look at "#sonar." in the midle of line

vanderby commented 5 years ago

Thanks for the bug!

Should be fixed by #19

Remember settings should be set in the app service config and not directly in sonar.properties else they will be overridden.