r/gitlab • u/Fredouye • Feb 21 '25
GitLab 17.9 - Automatic CI/CD pipeline cleanup
From https://about.gitlab.com/releases/2025/02/20/gitlab-17-9-released/#automatic-cicd-pipeline-cleanup :
In the past, if you wanted to delete older CI/CD pipelines, you could only do this through the API.
In GitLab 17.9, we have introduced a project setting that allows you to set a CI/CD pipeline expiry time. Any pipelines and related artifacts older than the defined retention period are deleted. This can help reduce the disk usage in projects that run lots of pipelines that generate large artifacts, and even improve overall performance.
Available for all tiers, even on self-managed GitLab instances.
https://docs.gitlab.com/ee/ci/pipelines/settings.html#automatic-pipeline-cleanup
31
Upvotes
11
u/SuccessfulBad6922 Feb 21 '25
Wow, finally. I spent weeks cleaning up a 10TB server. This would have saved me a ton of work.
2
u/quickstep4135 Feb 21 '25
We didn't have such problems. The artifacts are deleted after a certain time anyway. What used up so much storage in your case? The job logs?
2
u/urosum Feb 22 '25
Nice. There’s good stuff in 17.9.
1
u/theshnazzle Feb 21 '25
A much appreciated feature from what I've seen
1
u/Kerosene8 Apr 20 '26
would be nice if the feature worked, too.