TeamCity: Question regarding "system.teamcity.build.checkoutDir.expireHours" and "Free disk space"

I have a question regarding the interaction between "system.teamcity.build.checkoutDir.expireHours" and the build feature called "Free disk space".

I have read this page https://www.jetbrains.com/help/teamcity/build-checkout-directory.html but I'm still unclear on the following:

Is "Free disk space" entirely unable to release space if the work folders are not older than "expireHours"?


So f.ex. let's say that you create a brand new agent and set expireHours = 24, but the disk already fills up within 12 hours (i.e. all the working directories are younger than 24 hours).
In that case would TC then be totally unable to free space, and end up failing all builds that tries to run on the agent in the next 12 hours?

B/R
Kasper Pagh

0
2 comments

The Free Disk Space build feature will respect the teamcity.agent.build.checkoutDir.expireHours and system.teamcity.build.checkoutDir.expireHoursbuild properties. 

  • teamcity.agent.build.checkoutDir.expireHours is an agent property that can be added to the buildAgent.properties file
  • system.teamcity.build.checkoutDir.expireHoursbuild is a configuration property that can be added as a parameter in a build configuration

If either of these settings exist, the Free Disk Space feature will honor those settings. So if you create a build agent with teamcity.agent.build.checkoutDir.expireHours=24, the Free Disk Space build feature will not remove files that are younger than 24 hours old.

 

 

1

Thanks for getting back to me Eric Borchardt.
The answer is much appreciated!

0

Please sign in to leave a comment.