Skip to content

Add BuildLog expiration options

Description

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

Edited by Jason Yavorsky