Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete TeamCity Build Logs

Tags:

teamcity

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:

Disk usage

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.

like image 417
Swiftprotector Avatar asked Oct 28 '25 07:10

Swiftprotector


1 Answers

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.

like image 51
Yaegor Avatar answered Oct 31 '25 11:10

Yaegor