Hi,
I am new to sonarqube. We are trying to run sonarqube as a build step in Teamcity(CI/CD Tool). But i ended up with error. Please see the error below,
[12:11:29] *Step 7/14 *: Sonar static analysis start (SonarQube Runner)* (4s)*
[12:11:29] *Starting SQS from C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner*
[12:11:29] *-classpath*
[12:11:29] *C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner\lib\sonar-runner-dist-2.4.jar*
[12:11:29] *org.sonar.runner.Main*
[12:11:29] *"-Dproject.home=."*
[12:11:29] *"-Dsonar.host.url=[http://***-teamcity-01:9000](http://****-teamcity-01:9000/)"*
[12:11:29] *"-Dsonar.projectKey=TopbarTrunk"*
[12:11:29] *"-Dsonar.projectName=Topbar - Nightly Builds"*
[12:11:29] *"-Dsonar.projectVersion=1.0.0.1420"*
[12:11:29] *"-Dsonar.login=****
[12:11:29] *-Dsonar.login=******
[12:11:29] *"-Dscanner.home=C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner"*
[12:11:29] *Starting: C:\BuildAgent\jre\bin\java.exe -classpath C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner\lib\sonar-runner-dist-2.4.jar org.sonar.runner.Main "-Dproject.home=." "-Dsonar.host.url=[http://***-teamcity-01:9000](http://****-teamcity-01:9000/)" "-Dsonar.projectKey=TopbarTrunk" "-Dsonar.projectName=Topbar - Nightly Builds" "-Dsonar.projectVersion=1.0.0.1420" "-Dsonar.login=*****" -Dsonar.login=**********"-Dscanner.home=C:\BuildAgent\tools\sonar-qube-scanner.2.4-runner"*
[12:11:29] *in directory: C:\BuildAgent\work\1.0*
[12:11:29] *SonarQube Runner 2.4*
[12:11:29] *Java 1.8.0_121 Oracle Corporation (32-bit)*
[12:11:29] *Windows 10 10.0 x86*
[12:11:29] *INFO: Runner configuration file: NONE*
[12:11:29] *INFO: Project configuration file: C:\BuildAgent\work\1.0\.\sonar-project.properties*
[12:11:29] *INFO: Default locale: "en_AU", source code encoding: "UTF-8"*
[12:11:29] *INFO: Work directory: C:\BuildAgent\work\1.0\.\.sonar*
[12:11:29] *INFO: SonarQube Server 6.5.0.27846*
[12:11:30] *12:11:30.902 INFO - Load global settings*
[12:11:30] *12:11:30.989 INFO - Load global settings (done) | time=90ms*
[12:11:30] *12:11:31.009 INFO - User cache: C:\Users\teamcity\.sonar\cache*
[12:11:31] *12:11:31.261 INFO - Load plugins index*
[12:11:31] *12:11:31.293 INFO - Load plugins index (done) | time=32ms*
[12:11:31] *12:11:31.999 INFO - Process project properties*
[12:11:31] *12:11:32.024 INFO - Load project repositories*
[12:11:32] *12:11:32.273 INFO - Load project repositories (done) | time=249ms*
[12:11:32] *12:11:32.344 INFO - Load quality profiles*
[12:11:32] *12:11:32.478 INFO - Load quality profiles (done) | time=134ms*
[12:11:32] *12:11:32.483 INFO - Load active rules*
[12:11:33] *12:11:33.224 INFO - Load active rules (done) | time=741ms*
[12:11:33] *12:11:33.226 INFO - Load metrics repository*
[12:11:33] *12:11:33.309 INFO - Load metrics repository (done) | time=83ms*
[12:11:33] *12:11:33.345 WARN - SCM provider autodetection failed. No SCM provider claims to support this project. Please use sonar.scm.provider to define SCM of your project.*
[12:11:33] *12:11:33.345 INFO - Publish mode*
[12:11:33] *12:11:33.345 INFO - Project key: TopbarTrunk*
[12:11:33] *12:11:33.347 INFO - ------------- Scan Topbar - Nightly Builds*
[12:11:33] *12:11:33.461 INFO - Load server rules*
[12:11:33] *12:11:33.648 INFO - Load server rules (done) | time=187ms*
[12:11:33] *INFO: ------------------------------------------------------------------------*
[12:11:33] *INFO: EXECUTION FAILURE*
[12:11:33] *INFO: ------------------------------------------------------------------------*
[12:11:33] *Total time: 4.277s*
[12:11:33] *ERROR: Error during Sonar runner execution*
[12:11:33] *Final Memory: 8M/77M*
[12:11:33] *INFO: ------------------------------------------------------------------------*
[12:11:33] *ERROR: Unable to execute Sonar*
[12:11:33] *ERROR: Caused by: You must install a plugin that supports the language 'C#'*
[12:11:33] *ERROR:*
[12:11:33] *ERROR: To see the full stack trace of the errors, re-run SonarQube Runner with the -e switch.*
[12:11:33] *ERROR: Re-run SonarQube Runner using the -X switch to enable full debug logging.*
[12:11:33] *Process exited with code 1*
[12:11:33] *Process exited with code 1 (Step: Sonar static analysis start (SonarQube Runner))*
[12:11:33] *Step Sonar static analysis start (SonarQube Runner) failed*
The error log shows that “we have to install plugin for c#”.
We are assuming that this is the only error causing this issue or should we look at any other thing in the error log.
If this is the error can you please let me know which plugin do i have to use.
Your help will be appreciated. Thanks.