Allow users to configure skip ci behavior for pipeline execution policy
Compare changes
Files
2- Alan (Maciej) Paruszewski authored
This MR adds ability to disable [skip ci]
restriction for Pipeline Execution Policies. Users now will have option to allow skipping pipelines created from Pipeline Execution Policies with [skip ci]
and to specify users that should be exempted from that restriction.
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
![]() |
![]() |
[skip ci]
annotation. -> Pipeline will runskip_ci: { allowed: false, allowlist: { users: [{ id: YOUR_USER_ID }] }}
[skip ci]
annotation. -> Pipeline will be skippedskip_ci: { allowed: true }
[skip ci]
annotation. -> -> Pipeline will be skipped---
pipeline_execution_policy:
- name: PEP with skip ci enabled
description: ''
enabled: true
pipeline_config_strategy: inject_ci
content:
include:
- project: root/pep-skip-ci
file: pep.yml
skip_ci:
allowed: false
allowlist:
users:
- id: 1
approval_policy: []
Related to [BE] Add ability to skip_ci to pipeline executi... (#507831 - closed)