Add BuildLog expiration options
Could we add an option to automatically expire gitlab-ci build logs? There already exists options for automatically deleting artefacts, and for deleting a single build log, so perhaps it could be modelled 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 gitlab-ce#18039 - this could provide a partial solution