When does automatic clean of checkout directory occur?

When does the automatic work directory cleanup as described here actually occur? Does it only happen when the free disk space is below the disk space threshold (default of 3GB)? I've set the 'system.teamcity.agent.build.checkoutDir.expireHours' agent property in the buildAgent.properties file for one of my agents to 72 hours, and yet I'm not seeing work directories older than 3 days being automatically cleaned up. The documentation says "The directory cleaning is performed in background and can be paused by consequent builds", but I haven't seen anything actually be cleaned up in the last couple of days. Am I missing something?

0
6 comments
Avatar
Permanently deleted user

Also, I noticed in this thread that it was mentioned that the automatic clean up will not occur for builds that use a custom checkout directory. Is this still the case?

0
Avatar
Permanently deleted user

Bump.

0

Hi Stephen

Sorry for late reply.

TeamCity strated to clean custom checkout directories starting from version 6.5.

Please check buildAgent\work\directory.map file. Is your directory listed there?

0
Avatar
Permanently deleted user

Yes, all the work directories appear to be listed in the directory.map file.

0
Avatar
Permanently deleted user

This is still an open question for us.

0
Avatar
Permanently deleted user

Bump...

0

Please sign in to leave a comment.