Add BuildLog expiration options
Problem(s)
I don't want to store all my build logs because they take up too much space.
Use Cases
- I want to keep all my logs forever
- I want to keep logs for some time period and then throw them away regardless of branch status
- I want to keep the last log(s) for any branch that's active
- I never want to keep logs
Description
Could we add an option to automatically expire gitlab-ci build logs? There already exists options for automatically deleting artifacts, and for deleting a single build log, so perhaps it could be modeled after those?
Ideally I'd like to be able to keep build logs for tagged builds forever, but build logs for branch builds expire after a period of time. [Or perhaps after a period of time after the branch is deleted?].
Another option would be "keep last x pipelines".
Links / references
- Issue gitlab-ce#3421 allows users to manually remove a single build log.
- Issue gitlab-ce#27762 adds a feature to automatically expire artifacts.
- Issue #329399 (closed) - this could provide a partial solution
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.