Skip to content

Not getting sonar report while using sonar-cxx for SonarQube 9.9.5 LTS #2683

@nirajsinha73

Description

@nirajsinha73

Hi
I am using SonarQube 9.9.5 LTS and cxx plugin 2.1.1 after getting successfully execution of sonarqube no report published on sonarqube dashboard.

Below configuration using for sonarqube.

 C:\\apps\\sonar-scanner\\bin\\sonar-scanner.bat -e \
                        -Dsonar.host.url=http:\\*****:9000 \
                        -Dsonar.sources=. \
                        -Dsonar.projectVersion=%REPORT_VERSION% \
                        -Dsonar.projectName=%PROJECT_NAME% \
                        -Dsonar.projectKey=%PROJECT_KEY% \
                        -Dsonar.sourceEncoding=UTF-8 \
                        -Dsonar.projectBaseDir=%RELEASE_WORKSPACE%\\output\\precompiled\\ \
                        -Dsonar.cxx.cppcheck.reportPath=%RELEASE_WORKSPACE%\\output\\cppcheck.xml \
                        -Dsonar.cxx.coverage.reportPath=%RELEASE_WORKSPACE%\\output\\UTCoverageReport.xml \
                        -Dsonar.cxx.xunit.reportPath=%RELEASE_WORKSPACE%\\output\\iFDmgr_UT-Results.xml \
                        -Dsonar.cxx.valgrind.reportPath=%RELEASE_WORKSPACE%\\output\\UTValgrindReport.xml \
                        -Dsonar.cxx.compiler.regex="^(.*):([0-9]+): warning: (.*)\\[(.*)\\]$" \
                        -Dsonar.cxx.compiler.parser=GCC \
                        -Dsonar.cxx.compiler.charset=UTF-8 \
                        -Dsonar.cxx.compiler.reportPath=%RELEASE_WORKSPACE%\\output\\make.log

Below are the logs of sonarqube.

INFO: Load project settings for component key: 'iFDmgr_05.01.01'
INFO: Load project settings for component key: 'iFDmgr_05.01.01' (done) | time=161ms
INFO: Auto-configuring with CI 'Jenkins'
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=206ms
INFO: Load active rules
INFO: Load active rules (done) | time=5105ms
INFO: Load analysis cache
INFO: Load analysis cache (404) | time=153ms
WARN: Property 'sonar.password' is deprecated. It will not be supported in the future. Please instead use the 'sonar.login' parameter with a token.
INFO: Load project repositories
INFO: Load project repositories (done) | time=163ms
INFO: Indexing files...
INFO: Project configuration:
INFO: 32 files indexed
INFO: ------------- Run sensors on module iFDmgr_05.01.01
INFO: Load metrics repository
INFO: Load metrics repository (done) | time=158ms
INFO: Sensor JaCoCo XML Report Importer [jacoco]
INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml
INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer
INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=1ms
INFO: Sensor CSS Rules [javascript]
INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped.
INFO: Sensor CSS Rules [javascript] (done) | time=1ms
INFO: Sensor C# Project Type Information [csharp]
INFO: Sensor C# Project Type Information [csharp] (done) | time=0ms
INFO: Sensor C# Analysis Log [csharp]
INFO: Sensor C# Analysis Log [csharp] (done) | time=8ms
INFO: Sensor C# Properties [csharp]
INFO: Sensor C# Properties [csharp] (done) | time=0ms
INFO: Sensor HTML [web]
INFO: Sensor HTML [web] (done) | time=1ms
INFO: Sensor TextAndSecretsSensor [text]
INFO: Sensor TextAndSecretsSensor [text] (done) | time=4ms
INFO: Sensor VB.NET Project Type Information [vbnet]
INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms
INFO: Sensor VB.NET Analysis Log [vbnet]
INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=11ms
INFO: Sensor VB.NET Properties [vbnet]
INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms
INFO: Sensor IaC Docker Sensor [iac]
INFO: 0 source files to be analyzed
INFO: 0/0 source files have been analyzed
INFO: Sensor IaC Docker Sensor [iac] (done) | time=38ms
INFO: ------------- Run sensors on project
INFO: Sensor Analysis Warnings import [csharp]
INFO: Sensor Analysis Warnings import [csharp] (done) | time=1ms
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=3ms
INFO: SCM Publisher is disabled
INFO: CPD Executor Calculating CPD for 0 files
INFO: CPD Executor CPD calculation finished (done) | time=0ms
INFO: Analysis report generated in 66ms, dir size=155.9 kB
INFO: Analysis report compressed in 15ms, zip size=18.2 kB
INFO: Analysis report uploaded in 175ms
INFO: ANALYSIS SUCCESSFUL, 

Below are the sonar dashboard.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions