Search code examples
sonarqubeteamcitysonar-runner

Set sonar quality profile from teamcity sonar runner


I am generating sonar report from teamcity sonar runner but I see that Quality Profile is set to Use 'Sonar way' (XML) but I want it to be Stop using sonar way (xml). Can anyone suggest the parameter or setting I need to do.

Note: I can not share the logs or screenshots here because of organization policy.


Solution

  • I used parameter sonar.Language=cs. it excluded xml analysis and now I see Stop using sonar way (xml).

    https://docs.sonarqube.org/display/SONAR/Analysis+Parameters

    sonar.language

    Set the language of the source code to analyze. Browse the Plugin Library page to get the list of all available languages. If not set, a multi-language analysis will be triggered.