Jenkins sonar quality issue

I have a Jenkins work to analyze sonar. When I try to add a build step for Quality Gates (to flag an error if new errors appear), I get this error:

JSONObject ["projectKey"] not found.

Can anyone help?

+4
source share
1 answer

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.

+1
source

Source: https://habr.com/ru/post/1657577/


All Articles