Customizing Quality Gates
Last updated
Last updated
Quality Gates return a Pass or Fail (sometimes referred to as Go/No-Go rules) rating for analysis, depending on the selected criteria.
To create a new Quality Gate, follow the steps below:
Navigate to your organization's page and select the Quality Gates tab.
Copy an existing Quality Gate to use as a template or select Create to design it from scratch.
Give it a unique name and select Save.
To add desired conditions with their Warning and Error thresholds, click on Add Condition.
Note: To customize a Quality Gate that is already in use, click on Unlock editing first, as shown below.
Conditions on New Code and Old Code must be added separately.
To assign Quality Gates to specific projects, use the Project Settings > Quality Gates menu for your project and select the one you would like to use.
A default Quality Gate can be set at the org level. Select Set as Default.
Then it will be assigned automatically to every new project, except those for which you specify a different gate. (See step 6.)
NOTE: BUILT-IN Quality Gates are standard and can’t be edited. But you can always Copy and customize as needed. (See step 2.)
NOTE: Changing the severity to 'Info' will not block the Quality Gates.