Manage quality gates

View quality gate details

  1. On the top navigation bar, click Business Apps.

  1. From the left navigation pane, select Delivery Center > Continuous Delivery.

  1. Select ConfigMap Management > Quality Gates.

  1. Click a quality gate name to view the quality gate details.

Add a quality gate

  1. On the top navigation bar, click Business Apps.

  1. From the left navigation pane, select Delivery Center > Continuous Delivery.

  1. Select ConfigMap Management > Quality Gates.

  1. Click Add to add a quality gate.

  1. 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

  • Bugs: Number of bugs, an integer in the range of 0 to 9999.

  • Vulnerabilities: Number of vulnerabilities, an integer in the range of 0 to 9999.

  • Code Smells: Number of code smells, an integer in the range of 0 to 9999.

  • Code Duplication: 0 to 100, in percentage.

API Test

Pass Rate: 1 to 100, in percentage.

 

Apply a quality gate

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."

  1. On the top navigation bar, click Business Apps.

  1. From the left navigation pane, select Delivery Center > Continuous Delivery.

  1. Select ConfigMap Management > Quality Gates.

  1. Click Apply in the Actions column for a quality gate.

  1. Select one or multiple pipelines.

You can filter pipelines by name.

  1. Click OK.

The quality gate is applied to the selected pipelines.

Edit a quality gate

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.

 

  1. On the top navigation bar, click Business Apps.

  1. From the left navigation pane, select Delivery Center > Continuous Delivery.

  1. Select ConfigMap Management > Quality Gates.

  1. Click Edit in the Actions column for a quality gate.

  1. Configure the parameters as needed.

  1. Click OK.

Copy a quality gate

Perform this task to copy a quality gate, and then edit the copied settings to create a new quality gate as needed.

  1. On the top navigation bar, click Business Apps.

  1. From the left navigation pane, select Delivery Center > Continuous Delivery.

  1. Select ConfigMap Management > Quality Gates.

  1. Click Copy in the Actions column for a quality gate.

  1. Edit the quality gate settings as needed.

  1. Click OK.

Delete a quality gate

Quality gates that have been applied to pipelines cannot be deleted.

  1. On the top navigation bar, click Business Apps.

  1. From the left navigation pane, select Delivery Center > Continuous Delivery.

  1. Select ConfigMap Management > Quality Gates.

  1. Click Delete in the Actions column for a quality gate.

  1. In the dialog box that opens, click OK.