SonarQube Community Build | Quality standards administation | Managing quality gates | Associating projects with quality gate
Associating projects with a quality gate
The default quality gate is associated with all projects that are not explicitly associated with a quality gate. You can explicitly associate a project with a quality gate:
- At the quality gate level with the Administer Quality Gates permission. The procedure is explained below.
- At the project level with the Administer Quality Gates permission or the Administer Project permission. See Changing the quality gate of your project.
Last setting overrides principle without a hierarchy
The "last setting overrides" principle applies without a hierarchy: the most recently configured setting will take precedence over all previous settings. For example:
- From the Quality Gates page, you first associate quality gate 1 with project 1.
- Still from the Quality Gates page, you associate quality gate 2 with project 1. Project 1 is now associated with quality gate 2.
- From project 1's settings, you associate project 1 with quality gate 3. Project 1 is now associated with quality gate 3 (the setting is updated in the Quality Gates page).
- From the Quality Gates page, you associate quality gate 1 with project 1. Project 1 is now associated with quality gate 1 (the setting is updated in project 1's settings).
To avoid misconfigurations, we recommend that in your instance, you perform explicit associations either from the Quality Gates page or from the project settings, but not from both.
Associating (or disassociating) a quality gate with (from) projects
- In the top navigation bar, select Quality Gates.
- In the left panel, select the quality gate you want to manage.
- In the right panel's Projects section, select the With (to view only the associated projects), Without (to view only the not associated projects) or All tab.
- Select or unselect the projects you want to associate or disassociate with / from the quality gate.

Was this page helpful?