Updated on 2024-10-10 GMT+08:00

Configuring Quality Gates

Set the threshold based on the quality requirements to check whether the project is ready for production. If the actual check result surpasses the gate threshold, the project is deemed unfit 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 task details page, and choose Settings > Quality Gate.

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

This section uses a task-level quality gate as an example to describe how to configure a quality gate.

  1. Access CodeArts Check through a project.
  2. Go to the task page. In the task list, click a task name.
  3. On the task details page, choose Settings > Quality Gate.
  4. In the Quality Gate area, enable gate items and set thresholds based on quality requirements.

    Figure 1 Configuring a gate

  5. 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. Fix code as prompted.