Does team city delete idle working directories?
We've recently made the plunge into team city and turned off our cc.net server.
I setup a branch config and our main trunk build. The trunk build gets built at least once a day.
The branch builds only when someone needs it.
Anyway I noitce that the work directory for some configs gets deleted from time to time, i'm assuming due to being idle.
So if i leave the branch idle and don't build for maybe a week or so, when it does start building again, teamcity has to do a full checkout because Checkout directory is empty or doesn't exist even though I know for sure there was a successful build not too long ago.
Is this by design? or is it configurable?
I set up some cleanup rules, but i wasn' tunder the impression this would effect the work directory
thanks
Please sign in to leave a comment.
Yes, build checkout directories are cleaned after 8 days of inactivity.
It can be configured, llok at Automatic Checkout Directory Cleaning article.
so to change the default value of 8 days, i can simply open the buildAgent properties file and add the following line to make it expire at least every 28 days or something?
system.teamcity.agent.build.checkoutDir.expireHours=28
Yes, but note this is a value in hours.
Second property allows you to change the value centrally on server side, and do not modify configuration files on all the agents.
Right, clearly the property says expireHours. My bad for somehow not noticing that.
cheers