Skip to content

Create an API endpoint to disallow storage of artifacts by "unlocking" all pipelines for a project

In the original issue, Make "keep latest artifact" configurable at the project-level, we wanted to address the issue of allow users to manage unwanted consumption of storage because there is no way to disable "keep latest artifacts" at a project level.

Adding an API endpoint to 'unlock' all existing pipelines for project X would solve for some of this pain until #241026 (closed) is fully delivered, since artifacts will no longer be stored.

Technical Proposal

Create a new API endpoint that allows the project id to be passed in, and all pipelines associated with the project will be "unlocked".

Note that this implementation will not proactively unlock any new pipelines created in this project, and update only the ones that currently exist in the ci_pipelines table

Edited by Cheryl Li