So I have a project with large amount of build logs which previously inherited "delete after 91 days" rule from grandparent project.
I am adding the specific "delete after 31 days" rule to this project via Kotlin DSL configuration and it is displayed in this project's Clean-up Rules
section.
However, after pushing Administration
-> Clean-up Settings
-> Start clean-up now
, the disk space is not reclaimed and the builds older than 31 days still have their logs available via TeamCity UI. Waiting for a periodic clean-up does not help - the logs are still there and accessible. The logs which were older than 91 days were pruned correctly. However, when I set up the 91 days rule initially, I had the similar issue and had to remove old logs by hand.
Why does not Clean-up work as expected?
TeamCity runs as a local user (not in docker), owns the log files. They are not cleaned since TeamCity can still show logs way after they are supposed to be cleaned up. Nothing in logs. Actually, cleanup logs list some build ids to be cleaned, but when I go to these builds' pages, logs are still available there!