Add ability to disable "Automatic pipeline cleanup" instance wide.

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

Proposal

One of our customers has a requirement to be able to disable Automatic pipeline cleanup for all of the users (instance wide) for compliance reasons. Currently if a user is an owner of the project they can go to:

  • On the left sidebar, select Search or go to and find your project.
  • Select Settings > CI/CD.
  • Expand General pipelines.
  • In the Automatic pipeline cleanup field, enter the number of seconds, or a human-readable value like 2 weeks. Must be one day or more, and less than one year. Leave empty to never delete pipelines automatically. Empty by default.
  • Select Save changes.

And enable Automatic pipeline cleanup

https://docs.gitlab.com/ci/pipelines/settings/#automatic-pipeline-cleanup

Workround

Current workaround might be for now is to disable the ci_schedule_old_pipelines_removal_cron_worker under the admin > monitoring > background jobs > cron.

Edited by 🤖 GitLab Bot 🤖