Sonar check about bazel remote build

Hi team, recently our team have decide to enable bazel remote build in our CI jobs, and As one stage of our CI pipelines, sonar check will get the error below when I use bazel remote build for C++ repo. And Everythins is OK if we use local build for our CI job in our CI machines. So Can your tell me how to debug for sonar check in remote build? Thx!

Hey @pkingpeng,

I’m not sure what you mean exactly by remote build, but build-wrapper cannot capture commands executed on remote machines. Also, the build and analysis should happen on the same host.

Also, Baxel is only supported in non-sandboxed mode, Have a look at Building with Bazel section in our doc.