Custom rule location

Must-share information (formatted with Markdown):

  • version: SonarQube 6.2
  • what are you trying to achieve: I wanted to know where the sonarqube custom rules are saved once it is added to the web GUI ( is it stored in sonarqube file system or is it in the database). So to explain more, we have a previous sonarqube server that uses oracle as a database and what we are doing is that we are migrating custom rules created in that sonarqube instance into a new one however our database is not yet available for the new sonarqube instance. So while we are waiting for the database we wanted to forward migrating the custom rules but the thing is we are not sure if the custom rules is save in the Sonarqube file system or in the database cause once our database is ready where going to connect it with the new Sonarqube instance and where afraid that if ever custom rules are saved in default database we will lose it. can someone tell me? thanks…
  • what have you tried so far to achieve this: tried searching over the web but cant find any. tried checking the file system but cant fine any

Hi,

Welcome to the community!

Your version is way past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

6.2 → 6.7.7 → 7.9.6 → 8.9.8 → 9.4 (last step optional)

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes helpful. If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, if you’re talking about rules made from rule templates, the answer is that they’re stored in the DB.

 
HTH,
Ann

hello,
thank you so much for the response I appreciate it. We will consider your advice regarding version upgrade.