incremental scan on docker container
We are running cpptestcli to scan our code inside a docker container.
Since we start with clean workspace every time, the scan takes too much time.
To try to resolve it, we copied ".cpptest" folder to a shared location, then, on the next run, downloaded it to the workspace. the problem is that we still see long scans that seems like full scan and not incremental.
Few things I think could cause this issue:
- we run the scan with a Jenkins pipeline and the build ID is part of the path to the code so the absolute path is different every time.
- We use compile_comands.json and it always contains the absolute path. tried to use symbolic link in the compilation and in the scan with no success. I still see the full path in the json.
- the scans run on different Jenkins node every time.
Any ideas how to solve it? what is missing? is it really a paths issue or something else is missing?
if it is a paths issue, will it help to edit the compile_commands and remove the base dir from the paths?