Allow setting the Quality Gate with SonarScanner

If we can set the Quality Gate using CLI (SonarScanner) we avoid manual work after project creation (having to change the Quality Gate after project creation).

We also want teams to be able to temporarily change the Quality Gate, for instance when doing refactoring. If we can automate this using the SonarScanner, we can also have an audit trail in the Git repo and know who, why, and when the gate got updated.


Welcome to the community!

I just want to point out that a user with Admin on the project will have the ability to change the Quality Gate association via the UI. Yes, I know you’ve said you want a change log in the commit history, but what you’re asking for wouldn’t necessarily produce that. If it can be set from analysis, that means it can be defined in the analysis command line itself, leaving no record in Git.