Must-share information (formatted with Markdown):
which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
SonarQube Version 7.9.2 (Enterprise Edition)
what are you trying to achieve
I would like to run sonar-scanner (https://repo1.maven.org/maven2/org/sonarsource/scanner/cli/sonar-scanner-cli/18.104.22.1682/sonar-scanner-cli-22.214.171.1242.zip) with a different profile to the one thats set on the server. We are in the process of fine tuning all the rules for the various programming languages that we use in the organization. So we would like to give developers a means of running against the new profiles that are due to go to production, this way they can analyze and resolve all the technical debt before the production cut-over date.
We run sonar-scanner as follows:
So I am looking for a way to tell the above command to scan against a specific profile on the server; hence over-riding the current profile thats set on the server for that project.
We also use Maven Sonar plugin for our Java projects, so would appreciate if you can shed some light on how I can go about doing this using Maven too.
what have you tried so far to achieve this
I tried to use
-Dsonar.profileas a param to the sonar-scanner but that did not work; this may be deprecated.