Scanner command used when applicable (private details masked)
Languages of the repository: Java, Python, Typescript
Sonar takes a while to run for our codebase (even on an 8 core machine), so we decided to split the scanning out into a separate build from the test suite. We’re currently looking into uploading the test coverage to sonar, the problem now being that sonar isn’t running in the same job.
Is there a way to have a job only upload the lcov.info file, without it affecting the scanning itself? I’ve tried running sonar in both builds, with the testing job excluding all files, but that seems to wipe out all code scanning results.
You cannot enrich an analysis with data after the fact (like submitting a coverage report after submitting the analysis). Any analysis will always wipe out the previous one.
I’d suggest joining a similar conversation over here: