Feature proposal: Disable automatic pipeline cleanup on protected branches

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Release notes

Automatic pipeline cleanup can now be disabled on protected branches.

Problem to solve

Usually deployment pipeline runs made from main branches are important to keep around, e. g. for legal (liability) reasons. However, it is also important to save resources by deleting obsolete pipeline runs, especially those made from feature branches.

Currently it is not possible to automate this kind of cleanup via the "Automatic pipeline cleanup" feature, because it always applies to all branches.

We'd like to fine tune where the cleanup applies to, e. g. "Do not clean up protected branches".

A simple check box "Exclude protected branches" under CI/CD-Settings -> General Pipelines -> Automatic pipeline cleanup should be enough.

Edited by 🤖 GitLab Bot 🤖