Are cloud-based (EC2) agents guaranteed to only be executing one build at any given time?
I am asking this, because for some reason, my Swabra cleaners often can't delete a whole bunch of files:
[16:22:36][Swabra] Scanning directory /home/svc_buildagent/buildAgent/work for newly created, modified and deleted files comparing with snapshot 6e52ff80.snapshot, paths to monitor are /home/svc_buildagent/buildAgent/work, /home/svc_buildagent/buildAgent/work/8bea4d1260be35ed
[16:22:36][Swabra] Detected modified /home/svc_buildagent/buildAgent/work/directory.map
[16:22:36][Swabra] Detected new, unable to delete /home/svc_buildagent/buildAgent/work/.old/1acf664ae1b5fdd4_3/packages/FAKE/FAKE.nupkg
[16:32:25][Swabra] Detected new and deleted /home/svc_buildagent/buildAgent/work/8bea4d1260be35ed/docker-gc-state
[16:32:25][Swabra] Detected 7011 unchanged, 7347 newly created (355 of them deleted), 477 modified, 1 deleted files and directories
When this happens, the clean up step usually takes up to 9 minutes.
My goal is to make Swabra delete all the files under /home/svc_buildagent/buildAgent/work (is this a good idea?) so that I always have enough disk space left before I start the next stage of my build pipeline.
Also when a build creates some artifacts, where do those artifacts get saved in? On the build agent itself? In which path? Can I configure TeamCity to store the artifacts in an S3 bucket?