Cleanup Agent Sources

Is there a way to clean up sources on agents? It seems that the cleanup policy only works for the server itself. Each agent has lots of sources for build configurations that it hasn't built in a long time. I'd like to be able to say if an agent hasn't used particular sources in 30 days, it should delete them and next time it builds it would just redownload the whole sources.

Is that possible?

Thanks,

Dan Lash

1 comment
Comment actions Permalink

It is set by default to cleanup source after 14 days of inactivity. You may change this settings either for build agent or for build configuration.

use "teamcity.agent.build.checkoutDir.expireHours" property
use build configuration properties: use "teamcity.build.checkoutDir.expireHours" property

Thanks!

0

Please sign in to leave a comment.