I do not see SonarQube analysis results

I am using sonarqube with jenkins. Execution succeeded, but I don't see any report or result. It is still 0.

I think the problem is here, but I'm not sure.

16:01:05 16:01:05.380 WARN: This may lead to missing/broken features in SonarQube
16:01:05 16:01:05.380 INFO: Sensor SCM Sensor (wrapped) (done) | time=625ms
16:01:05 16:01:05.380 INFO: Sensor C# (wrapped)
16:01:05 16:01:05.396 INFO: Importing analysis results from C:\Jenkins\jobs\firecom_backend\workspace\null\output-cs
16:01:05 16:01:05.411 WARN: Protobuf file not found: null\output-cs\encoding.pb
16:01:05 16:01:05.427 WARN: Protobuf file not found: null\output-cs\metrics.pb
16:01:05 16:01:05.427 WARN: Protobuf file not found: null\output-cs\issues.pb
16:01:05 16:01:05.427 WARN: Protobuf file not found: null\output-cs\token-type.pb
16:01:05 16:01:05.442 WARN: Protobuf file not found: null\output-cs\symrefs.pb
16:01:05 16:01:05.442 WARN: Protobuf file not found: null\output-cs\token-cpd.pb
16:01:05 16:01:05.442 INFO: Sensor C# (wrapped) (done) | time=62ms
16:01:05 16:01:05.442 INFO: Sensor C# Unit Tests Coverage Report Import (wrapped)
16:01:05 16:01:05.442 DEBUG: No coverage property. Skip Sensor
16:01:05 16:01:05.442 INFO: Sensor C# Unit Tests Coverage Report Import (wrapped) (done) | time=0ms
16:01:05 16:01:05.442 INFO: Sensor C# Integration Tests Coverage Report Import (wrapped)
16:01:05 16:01:05.442 DEBUG: No coverage property. Skip Sensor
16:01:05 16:01:05.442 INFO: Sensor C# Integration Tests Coverage Report Import (wrapped) (done) | time=0ms
16:01:05 16:01:05.442 INFO: Sensor C# Unit Test Results Import (wrapped)
16:01:05 16:01:05.442 DEBUG: No unit test results property. Skip Sensor
16:01:05 16:01:05.442 INFO: Sensor C# Unit Test Results Import (wrapped) (done) | time=0ms
16:01:05 16:01:05.442 INFO: Sensor Zero Coverage Sensor (wrapped)
16:01:05 16:01:05.474 INFO: Sensor Zero Coverage Sensor (wrapped) (done) | time=32ms
16:01:05 16:01:05.474 INFO: Sensor Code Colorizer Sensor (wrapped)
16:01:05 16:01:05.505 INFO: Sensor Code Colorizer Sensor (wrapped) (done) | time=31ms
16:01:05 16:01:05.505 INFO: Sensor CPD Block Indexer (wrapped)
16:01:05 16:01:05.505 INFO: DefaultCpdBlockIndexer is used for cs
16:01:05 16:01:05.505 DEBUG: No CpdMapping for language cs
16:01:05 16:01:05.505 INFO: Sensor CPD Block Indexer (wrapped) (done) | time=0ms
16:01:05 16:01:05.505 INFO: Calculating CPD for 0 files
16:01:05 16:01:05.505 INFO: CPD calculation finished
16:01:08 16:01:08.692 INFO: Analysis report generated in 3094ms, dir size=276 KB
16:01:09 16:01:09.364 INFO: Analysis reports compressed in 672ms, zip size=150 KB
16:01:09 16:01:09.364 INFO: Analysis report generated in C:\Jenkins\jobs\firecom_backend\workspace\.scannerwork\batch-report
16:01:09 16:01:09.364 DEBUG: Upload report

      

There is a folder named null, it might be the problem, but I don't know how to solve it.

My sonar.properties parameters:

sonar.projectKey=mykey
sonar.projectName=myproject
sonar.projectVersion=1.0
sonar.sources=.
sonar.language=cs
sonar.sourceEncoding=UTF-8

sonar.analysis.mode        
sonar.verbose=true

      

UPDATE:

I'm trying to downgrade a C # plugin, but I can't find where.

enter image description here

How can i do this?

+3


source to share


2 answers


Same for me in combinations: sonarqube 5.6.6 - C # 6.0.0.2033 Updated C # plugin to 5.4.0.464 and the analysis works. I would like to use the latest version :)



+2


source


I am assuming you are using a sonar scanner (no MsBuild). Since version 6.0 of the sonar-csharp-plugin, it only supports the Sonar-scanner-MSBuild.



You should upgrade to MsBuild scanner or upgrade to plugin version 5.XX

+2


source







All Articles