Clean-up policy not working according to rules
We have one project with three build configurations that form a build chain with artifact dependencies. All configurations use the default clean-up rule. What I want is to delete all artifacts older than 10 days but keep artifacts from pinned buils and the artifacts from builds the pinned build depends on.
For some reason the third (last) build configuration in the chain is cleaned-up according to the rules. The second configuration keeps artifacts 20 days and the first 30 days.
I've tried separate policies for each configuration (with different settings) and I've restarted the server, but for some reason teamcity does not delete all files older than 10 days.
Please sign in to leave a comment.
When you say 20 days and 30 days, is that 20 and 30 days from the most recent successful build, or from the current date? Something I missed for a while is that the rule is specifically from the last successful build. If that last build was 20 days ago, then it'll be keeping builds from up to 30 days ago. Often in a chain, the deeper items are building less frequently than the top of the chain.
True, the last configuration in the chain builds less frequent, but still daily. Since the clean-up is done at night this will make no difference.