Is there a way to generate a report for the SonarQube branch new code directly and only once?

993 Views Asked by At

What I'm targeting is to run SonarQube analysis on a branch only once, and generate a report for just the new code ( like pull requests, the analysis runs one time and displays the result for only the new code).

What is happening right now when scanning a branch .. the first time analysis is to generate a report for overall code .. and then any other analysis later on is for the new code.

I've tried to use sonar.newCode.referenceBranch sonar property .. to analyze my branch according to the reference branch .. so display a report for only the new code but unfortunately it doesn't work as expected .. and I should run analysis again to show the new code result.

Does any one have an idea to achieve this?

Thanks

The screenshot shows what I've got when using sonar reference branch property

0

There are 0 best solutions below