Agent Working Directory

Search
Searching TeamCity 4.x Documentation
Table of Contents

Agent working directory is the directory on a build agent that is used as a containing directory for the checkout directories.
By default, this is the <Build agent home>/work directory.

To modify the default directory location, see Build Agent Configuration.

Cleaning the Agent Working Directory

By default directory lifetime is 8 idle days. "Idle day" term means that during the day there were no non-personal builds started on the agent.

To change the default setting, use either of the following methods:

  • Set 'teamcity.agent.build.checkoutDir.expireHours' property in the buildAgent.properties file
  • Use 'teamcity.build.checkoutDir.expireHours' system property

For both those variables accept number of hours before build configuration is cleaned up.

This option will only work if there is no custom Build Checkout Directory.




See Also:

Labels