Running SonarQube analysis scan - SonarSource build-wrapper

Contacted support, turns out this was caused by missing the argument sonar.cfamily.build-wrapper-output in the scanner begin command.


To solve this issue, download the Build Wrapper directly from your SonarQube Server, so that its version perfectly matches your version of the plugin:

Build Wrapper for Linux can be downloaded from URL

http://localhost:9000/static/cpp/build-wrapper-linux-x86.zip

Unzip the downloaded Build Wrapper, Configure it in your PATH because it's just more convenient

export PATH=$PATH:/path/where/you/unzip

Once done, Run below commands.

build-wrapper-linux-x86-64 --out-dir <dir-name> <build-command>
build-wrapper-linux-x86-64 --out-dir build_output make clean all

Once all this done, you have to modify your sonar-project.properties file with following line. Note the dir-name is same directory which we defined in previous command.

sonar.cfamily.build-wrapper-output=<dir-name>

and then you can run the sonar scanner command.

sonar-scanner

this will do the analysis against your code. For more details, you can check this link.