The step of building a quality gate can fall under the Actions to build a POST .
So try adding post build action from Quality Gates. And make sure you give the project key.
The project key can be taken into account from the console of the sonar server.
This should fix the error.
source
share