We used SonarQube to do a full scan of the Android 8 build for our product, and with a few exclusions we always managed to produce a succesful buil-wrapper and scan.
Now we moved to Android 10 for our project and since this switch over our build-wrapper-dump.json stays empty.
SonarQube version: Version 8.8 (build 42792)
Build-wrapper version: build-wrapper, version 6.18 (linux-x86)
Sonar-Scanner version: SonarScanner 4.3.0.2102
I feel it must be something simple, but what would be first things I’d need to check please ?
are you using soong build system? If it is the case you may be affected by [CPP-2372] build-wrapper-linux should be able to capture "go" processes creation - SonarSource. soong should be able to generate a JSON Compilation Database and you can configure the analysis with the compilation database instead, available in SonarQube > 9.0. You are currently using 8.8, an old version of SonarQube, I would recommend you to upgrade to the latest version.
We’ve updated to 9.3 developer edition now and today started a new build-wrapper on our android 10 build with also the updated build-wrapper (v6.30) but the result file still stays empty.
{
“version”:“6.30”,
“captures”:[
]}
Is the only thing that is in the build-wrapper-dump.json file
Using the python script allows me to do the scanner again. The work around seems to help here.
Is the bug going to be fixed so we don’t need the work around at some point ?