Updated on 2024-07-23 GMT+08:00

Configuring Quality Gate

Set the threshold based on the quality requirements to check whether the project is ready for production.

Quality gate can be set at the tenant, project, and task levels in a descending order of precedence. The navigation paths are as follows:

  • Tenant level: Go to the CodeArts Check homepage, and choose Config Center. The Quality Gate details are displayed by default.
  • Project level: Go to the project details page, and choose Code > Check > Config Center > Quality Gate.
  • Task level: Go to the CodeArts Check details page, and choose Settings > Quality Gate. This section uses a task-level quality gate as an example to describe how to configure a quality gate.

Notification settings are supported at the project level and task level.

Procedure

  1. Go to the task page. In the task list, click a task name.
  2. On the displayed View Task Details page, click Settings > Quality Gate.
  3. In the Quality Gate area, enable gate items and set thresholds based on quality requirements.

  4. Click Save.

    You can click Start Check and view the check results.

    If the issues of a gate item exceed the corresponding thresholds for a gate, Failed is displayed in the Task-level Gate Result area of the Overview tab page.