Sonarqube Problems after Upgrade 8.0

Hi there,

I’m a developer at AED, and will try to describe the issue more precisely.

We are using sonarqube to analyze source code in multiple languages, out of these also C and C++.
For most build plans, everything is working fine, we only encounter problems when using the build-wrapper together with with the “xsdk” Framework (Software Development Kit (SDK)).

If we track a normal Makefile build with the build-wrapper, the code is analyzed correctly, as in the following command line:

/opt/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir ${bamboo.build.working.directory}/build_output make

But if we compile C code using xsdk, the build-wrapper seems to not track the build correctly. We use the following line to trigger the build:

/opt/build-wrapper-linux-x86/build-wrapper-linux-x86-64 --out-dir build_output xsdk -batch -source ./build_r5_firmware.tcl

Result: The folder build_output is created, but the build-wrapper-dump.json is only ~40KB, and seems to not contain information about the compiled files. The build then fails with the message posted by Steffen above:

error 05-Nov-2019 11:37:30 java.lang.IllegalStateException: The “build-wrapper-dump.json” file was found but 0 C/C++/Objective-C files were analyzed

As xsdk is based on Eclipse, and uses a gcc compiler during the build, we would have expected that the build-wrapper can track our build. What can we do to make the build-wrapper track the build correctly?

Best,

Tom