Default Quality Gate - not always default?

Hi,

we are using SonarQube 6.7 LTS and have an issue with the “Default” Quality Gate.

A Quality Gate is marked Default but not all projects show them as “Default” (see picture below). What could be the root cause for this?

Regards,
Günter

grafik

Hi,

we found a workaround using the REST API

POST /api/qualitygates/deselect

On Windows you can use curl:

curl -u user:psw -d "projectKey=YourProjectKey" https://server/api/qualitygates/deselect

But still wondering why resetting the Quality Gate is not working in the UI?

Regards,
Günter

Hi Guenter,

I believe this is down to those projects having explicitly chosen the default as their QGs. Thus, they’re not using the default, they’re using their chosen QG (which happens to be the default).

And of course you know that I’m obligated to point out that 6.7 is no longer LTS. It’s past EOL. 7.9.2 is the current LTS, and 8.2 is the current version. You should upgrade at your earliest convenience.

 
HTH
Ann