Is it possible to clean checkout directory on a schedule

Hello,
I'm using agent checkout for our teamcity server. I was wondering is it possible to cleanup the build agent's checkout directory on a schedule, for instnace once a day. I don't want to cleanup for every build as it adds about 20 minutes to sync everyfiles again.

Thanks,

2 comments
Comment actions Permalink

I've found a way of doing this. If I create a new build configuration and set the build triggering to be Schedule Trigger, I can set the time I want to run this task. Also if I select the following options I can achieve what I wanted:

  • Trigger build on all enabled and compatible agents
  • Clean all files in checkout directory before build.
0
Comment actions Permalink

I am using TeamCity 8.1 .  Is it possible to clean checkout directory for all snapshot dependencies on a Schdule Trigger with the same setting metioned in the reply ?

  • Trigger build on all enabled and compatible agents
  • Clean all files in checkout directory before build.


( note , I want to clean all files for each snapshot dependency as well ? )

0

Please sign in to leave a comment.