Reputation: 69
A TeamCity job is currently failing because there is insufficient space on the disk. Via Administration => Disk usage, I found out that there are an exorbitant amount of build logs:
I have tried cleaning up the build history via the TeamCity UI, deleting everything before the last 10 successful builds, but this at best freed up 500 MB of disk space (thousands of builds have been created over a span of 2 years). I want to see on the disk where these files are located, and ideally, delete any and all log files safely, thus, nothing is broken afterwards. I have tried navigating through the TeamCity file structure, but am simply lost.
Upvotes: 4
Views: 3174
Reputation: 1832
You can locate internally stored build log files in the TeamCity Data Directory, under
<TeamCity Data Directory>\system\artifacts\<project ID>\<build configuration name>\<internal_build_id>\.teamcity\logs
.
If you delete the files under the directory, the corresponding build will not have build log and problems/test failure details.
Upvotes: 3