Prevent artifact deletion

Hi all

We are using a S3 Artifact storage for some TeamCity projects. The artifacts are correctly uploaded to S3.

When I delete the build in TeamCity, then the associated artifacts are deleted as well. How can I prevent the deletion of the artifacts in TeamCity? We would like to use S3 as a kind of archive for our artifacts and make sure that those artifacts are not deleted.

Thanks, Dieter

0
2 comments
Hello,
May I ask you the use-case of keeping the artifacts of deleted builds? 
TeamCity provides Clean-up rules under Project Settings that allow you to define what to keep and for how long, but there is no option to keep artifacts of builds that have been removed, as that would lead to inconsistent data.
It could be an option to configure your S3 bucket to use S3 Object Lock , which allows you to set a write-once-read-many (WORM) model. As this approach has not been tested internally, I recommend that you set a test bucket and project to see if it suits your needs and use it at your own risk.
 
Please let me know if you have any questions,
 
Guilherme
0

Hi

We would like to delete the builds in TeamCity to reduce disk space. But we want to keep the artefacts in S3, because those artefacts in S3 are used from our users. And some of our users still need access to old artefacts.

Anyway, we found another solution and when this use case is too specific, then you can close this question.

Thanks, Dieter

0

Please sign in to leave a comment.