We recently purchased Sonarqube developer edition. After preliminary testing, we ran Sonarqube for a set of packages in one of our product. In this, Sonarqube scanner step is continuously failing for a package ‘sam’ (C/C++). Please find below the steps that we used for the Sonarqube analysis:
build-wrapper, version 6.15 (linux-x86)
Developer Edition Version 8.6.1
- cd /code/monitoring/sam (Package path under which the Makefile exists)
- /opt/sonarqube/bin/build-wrapper-linux-x86-64 --out-dir /output/ make RELEASE=true ROOT=/code/buildroot P4CHANGENUM=100000 [SUCCESS]
- /opt/sonarqube_cli/bin/sonar-scanner -Dsonar.cfamily.build-wrapper-output=/output -Dsonar.projectKey=VXOA.sam -Dsonar.host.url=’<sonar_url>’ -Dsonar.login=*** -Dsonar.password=*** [FAILURE]
Error we face:
[2021-02-20T15:03:04.191Z] ERROR: Error during SonarScanner execution
[2021-02-20T15:03:04.191Z] java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed.
Note: Sonarqube analysis is done inside Centos 7 docker container.
When I checked the ‘/output/build-wrapper-dump.json’ file, I am able to see the C/C++ file analysis information for the ‘sam’ package. Can anyone help me in identifying this issue?