Hi @thisara ,
as stated in the documentation the sonar-scanner docker image is not supported for C++:
The Build Wrapper collects information about the build including absolute file paths (source files, standard headers, libraries, etc…). Later on, SonarScanner uses this information and needs to access those paths. Whereas this is straightforward while running these 2 steps on the same host, it is worth some consideration when using any sort of containerization. A consequence of this is that C / C++ / Objective-C analysis is NOT supported by SonarScanner CLI Docker image.
The analysis should be done in the same environment as the build, the analyzer needs to access all files used during build.