On the top navigation bar, click Business Apps.
From the left navigation pane, select Delivery Center > Continuous Delivery.
Select ConfigMap Management > Quality Gates.
Click a quality gate name to view the quality gate details.
Conditions: Quality gate conditions on unit test, API test, and code review.
Usage Statistics: Statistics on the quality gate usages in pipelines, including the number of checks, number of interceptions, and number of passes.
On the top navigation bar, click Business Apps.
From the left navigation pane, select Delivery Center > Continuous Delivery.
Select ConfigMap Management > Quality Gates.
Click Add to add a quality gate.
Configure the quality gate parameters and then click OK.
Parameter |
Description |
Name |
Name of the quality gate. Supported characters are Chinese characters, letters, digits, and special characters (.-_). The name must start with a Chinese character or a letter and cannot exceed 100 characters. |
Description |
Description for the quality gate. |
Conditions |
Quality gate conditions: Unit Test Pass Rate: 0 to 100, in percentage. |
Code Review
|
|
API Test Pass Rate: 1 to 100, in percentage. |
Perform this task to apply a quality gate to one or more pipelines where no quality gate has been used. To change the quality gate for a pipeline, see "Orchestrate a pipeline."
On the top navigation bar, click Business Apps.
From the left navigation pane, select Delivery Center > Continuous Delivery.
Select ConfigMap Management > Quality Gates.
Click Apply in the Actions column for a quality gate.
Select one or multiple pipelines.
You can filter pipelines by name.
Click OK.
The quality gate is applied to the selected pipelines.
The changes of a quality gate automatically apply to all pipelines that have used the quality gate. Use caution when you perform the edit operation. |
On the top navigation bar, click Business Apps.
From the left navigation pane, select Delivery Center > Continuous Delivery.
Select ConfigMap Management > Quality Gates.
Click Edit in the Actions column for a quality gate.
Configure the parameters as needed.
Click OK.
Perform this task to copy a quality gate, and then edit the copied settings to create a new quality gate as needed.
On the top navigation bar, click Business Apps.
From the left navigation pane, select Delivery Center > Continuous Delivery.
Select ConfigMap Management > Quality Gates.
Click Copy in the Actions column for a quality gate.
Edit the quality gate settings as needed.
Click OK.
Quality gates that have been applied to pipelines cannot be deleted.
On the top navigation bar, click Business Apps.
From the left navigation pane, select Delivery Center > Continuous Delivery.
Select ConfigMap Management > Quality Gates.
Click Delete in the Actions column for a quality gate.