I’ve just noticed that my build logs over a certain age (few weeks) are not available. I thought this may be due to the global cleanup policy, but this has been set to only cleanup builds > 90 days old so I don’t think this is the cause.
I did install the 1.7 update a few weeks back - is there a chance this has cleaned out my build logs somehow? Not sure if there are any known issues with the upgrade.
We do an overnight dump of the PostgreSQL database to a .bak file, but I imagine there isn’t an easy way of retrieving old build logs from this?
Regards,
Luke
Hi Luke,
Each build log is stored in SQL CE database file named “log” in the build workspace. We don’t store this in the main database to ensure that performance is not impacted.
If the build workspace was cleaned up, then build log is deleted and cannot be restored (unless the workspace was backed up).
I’ve tested the cleanup and checked the code, and cannot reproduce or find any issues. Can you check whether the global cleanup is being overridden at the project or configuration level? Note also that there is a Maximum Builds field in the cleanup policy. If there are more than this number of builds for a configuration then they will be cleaned up regardless of the Build Age. Otherwise, is it possible that the workspace was deleted manually to save disk space on the server?