Help Center> CodeArts Pipeline> User Guide> Rules and Policies> Using a Policy in a Pipeline
Updated on 2024-05-08 GMT+08:00

Using a Policy in a Pipeline

Tenant-level and project-level policies can be configured in pass conditions to control pipeline stage execution.

Tenant-level policies can be applied to pipelines of all projects under the current tenant, project-level policies can be applied to all pipelines under the current project.

  1. Select a pipeline to edit it. Click Pass Conditions under a stage. On the displayed dialog box, move the cursor to the pass conditions card and click Add.
  2. Select a policy for the pass conditions and click OK.
  3. After the configuration, execute the pipeline. During pipeline execution, the configured policy can be called to control the stage execution.