We are facing issue in setting up the sonar Qube project as part of android build source
(tried entire android build using make & particular module build as well).
- sonar properties files are setup correctly
- Build wrapper was successful - JSON file is empty
{
“version”:0,
“captures”:[ - sonar scanner is failing bcz of JSON file does not have anything (please refer the below-mentioned error logs)
INFO: -------------------------------------------
ERROR:-----------------------------
Error during SonarScanner execution
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
* you are using the latest version of the build-wrapper and the SonarCFamily analyzer
* your compiler is supported
* you are wrapping your build correctly
* you are wrapping a full/clean build
* if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process
-------------------------------------------SONAR PROPERTY FILE-----------------------
# The build-wrapper output dir
sonar.cfamily.build-wrapper-output=/build/YYYY/Android_Q_product_July9/LA.UM.8.2/LINUX/android/build_wrapper_output_directory
# Encoding of the source files
sonar.sourceEncoding=UTF-8
sonar.host.url=https://sonar.zebra.com
sonar.login=e6c61a8070055ab648d00edbaf004cd0256fdfe3
sonar.scm.exclusions.disabled=true
#sonar.projectBaseDir=/build/fwpb43/sonarqube/test_project_31-Aug/sonar-scanner-4.4.0.2170/bin/test/
sonar.sources=/build/YYYY/Android_Q_product_July9/LA.UM.8.2/LINUX/android/device/XXX/common/YYYY/src
#sonar.cfamily.build-wrapper-output=build_wrapper_output_directory
FYI - with sample program we are successful able to build & check errors in sonar qube.
PLEASE HELP US IN SOLVING THIS.