We are using Sonarqube oss 8.6 and scanner 2.13 and jenkins version is 2.176.
We have defined Quality Gate on ‘New code’ and also ‘New code’ behaviour is defined as ‘Previous Version’(default).We have configured in such away that every build is consider as a New code.
Sometimes ‘Issues’ of the current build are showing on Legacy code(overall code) and issues are assigning to ‘unknown user/someother developer name’ which are not at all related to current developer changes.But we see the correct number of lines/file name under the ‘Overview’ project page of ‘Duplication on 28 lines’(If you click on 28, in the next page we can see the details).We are pushing the code to jenkins from Gerrit and jenkins job will trigger automatically once code pushed to gerrit. We are using Jira for issue management.
Could you please let me know how to overcome this issue.