Hi there,
I have to create a pre-commit hook in Git and this should analyse my code in sonar and get quality gate response.
If Qulaity Gate response is Failed - then git should not allow commit the code.
I'm able to run sonar analysis using maven (mvn sonar:sonar), but this never get me the quality gate response.
Is there a way to get that.
I'm using shell script for pre-commit hook.
Thanks
Rahul Nair