Hi,
I am running SonarQube in a Jenkins pipeline in order to analyze C/C++ code. The build is done on Linux using a docker container with all build dependencies inside.
When I run the scanner after the buildwrapper (all within the same docker image and on the same machine), I get a stable result.
I want to separate the build-wrapper step from the analysis and potentially run them on two different machines.
If I use the same docker image on a different machine to run the analysis, of course with the same source code as what was used at the wrapper step (but not the derived objects), being available and at the same location (as seen within the container) and with the results of the wrapper steps available, I get a scanner result that looks correct. However the analysis results are not exactly the same as per my previous test. I still need to check the differences to understand exactly what happened.
So my question is the following: are derived objects needed for the analysis? (.o, .a, etc…).
If yes, what is needed and why ?
Thanks for your answers