Changing default quality gate

A default quality gate is assigned in your SonarQube Cloud organization's settings. This quality gate is automatically applied to new projects and can be modified at any time.

A default quality gate is defined in your organization: any project that is not explicitly associated with a quality gate, is associated with its organization’s default quality gate. The default quality gate is indicated in the UI with the DEFAULT tag.

By default, the default quality gate is the built-in quality gate Sonar way. You can set any built-in or custom quality gate as the default quality gate. Check the Understanding quality gates page for instructions.

circle-info

If you set as default a quality gate that is explicitly associated with projects, the explicit association is not shown anymore in the UI but is not removed: if you change again the default quality gate, the explicit association will show up again.

To change the default quality gate:

  1. Retrieve your organization. See Retrieving your organizations for details.

  2. Go to Quality Gates.

  3. In the left panel, select the quality gate you want to set as default.

  4. In the top right corner of the quality gate, select the actions menu and then Set as default.

Setting a default quality gate

Last updated

Was this helpful?