Cleanup folders instead of deleting them
Answered
Hello,
I'm using a TC agent on Linux. And inside work dir it creates a working directory 8592dba5c9e9cb3 for build. But I would like to use another disk for the folder of the specific build config.
So I created a symlink from work/8592dba5c9e9cb3 to another disk. But TeamCity for some reason deletes the folder at all and recreates it.
Option "Clean all files in the checkout directory before the build" is disabled I even disabled "
| Run 'p4 clean' for cleanup: | Cleans up your workspace from extra files before build (since p4 2014.1) |
|---|
Why this happens? I thought that working dir should never be deleted.
Also since I would like to use simlinks in other parts it makes a lot of troubles here: TC deletes a folders instead of just removing all files inside folders.
Is it possible?
Please sign in to leave a comment.
Hello,
By default checkout directory is cleaned automatically after a period of time. Cleaning can be disabled. Please see the related section in documentation: https://confluence.jetbrains.com/display/TCD10/Build+Checkout+Directory#BuildCheckoutDirectory-AutomaticCheckoutDirectoryCleaning.