I have a huge codebase that I'm analyzing through Sonar. I have integrated Sonar analysis in our CI build process, and the current structure looks like this:
---Prod build---
-ProjectKey: abc-Prod
-ProjectVersion: 2.0
-ProjectName:abc
Now, I also have nightly build process running on all our feature branches (I do not wish to change this to preview analysis and want a full sonar on all these too). This nightly branch analysis looks like this:
---Feature1---
-ProjectKey: abc-Feature1
-ProjectVersion: 2.0.1
-ProjectName:abc
--Feature2---
-ProjectKey: abc-Feature2
-ProjectVersion: 2.0.2
-ProjectName:abc
My question is this: In such a structure,I am not able to perform differential analysis between the Prod build and the Feature build. I know there is the "Compare" option to compare projects with different keys, but that is not sufficient for my case, as we are looking to see the exact new issues that have been added in the new features as opposed to the prod build.
Is there anyway I can restructure this, to use the same codebase as the Prod build for differential analysis against the feature builds?
Note:I cannot use the same project key because, I have dashboards that shuold always be able to pull up latest analysis on the prod build as well as every feature build, and overriding the version numbers for the same projectkey updates the results everywhere to the last analysis results.
Any pointers? Thanks!