Sonar.properties ignores extra settings

Hello,

We’re running SonarQube 8.9.6, it seems I cannot put additional config in sonar.properties? I just tried adding a couple, like:

sonar.dbcleaner.daysBeforeDeletingInactiveBranchesAndPRs=730

But once the server started the value on UI was still the default 30.

And a related follow up, would the api/settings/set API work for all named properties I see on the Administration tab? A lot of them are not returned by api/settings/list_definitions.

Thanks!
Michael

Hey there.

The only settings that can be set in the sonar.properties file are the ones that are in there by default. You cannot add additional configurations listed in the UI.

Yes.

Do you have an example?