I have configured SonarQube with quality gate metrics with Code smell, Vulnerabilities, Bugs, Code coverage and etc.
When someone committed the code to git, I want to find who violates the quality gate condition, I mean who injected a buggy code to the git.
In jenkis I can get the last commit user, but that is not practical always because if there are 2 users and first user commits with bugs and second user commit again with quality code and push it to the git. Then the second user is not the person who responsible for violating the quality gate condition.
I tried generating CNES report as described in here. GitHub - cnescatlab/sonar-cnes-report: Generates analysis reports from SonarQube web API.
This works fine. But in my case because of the version miss matches and other unavoidable dependencies this method is not applicable for me.
I am asking this question to know is there any other methods to get the commit user who violated the quality gate condition. I tried to find any other working method, but I couldn’t up to now.
Sonaqube version - 18.104.22.16801 ( cannot update due to other dependencies )
If someone with similar experience, please answer to this. Thanks in advance for your attention.