We have a project that compiles for multiple platforms. Depending on the platform, we may scan some files but not others.
We have a Developer edition and we have a Jenkins job that scans the project as soon as a review is submitted to Gerrit (via the Gerrit trigger plugin) to scan the short lived branch.
The problem is that we cannot know in which configuration we have to build since we cannot match modified files to build configurations. We cannot neither build in all configurations since the new scan will overwrite the previous one …
Is there a recommended way to scan such kind of builds whose compiled files depend on the build config ?
Thanks a lot