Manual cleanup of artifacts

We are saving a lot of artifacts for loads of projects. Instead of automatically cleaning them up after a certain time or number of builds, we would like to delete them manually at a certain stage in the project.

What is the best way to manually do this?

  • I could of course go into system\artifacts\project and delete the artifacts, but then TeamCity won't know that they are deleted, and the artifacts will still show up in the configuration history.
  • Another option is to go to "Administration -> Build History Clean-up -> Manage clean-up rules", change the "clean artifacts" rules for the project, trigger a clean-up, and then change the "clean artifacts" rules back to the original setting.

Is there any easier way of doing this?

Comment actions Permalink

Hello Anders,

there is no other way to perform clean up, actually your fisrt option is not recommended. But what might help you is the ability to pin builds so that way to prevent them to be cleaned up. Also note that dependend builds are automatically pinned.



Comment actions Permalink

Thanks for your suggestions. I don't however think pinning builds would help, because:
-We would need to pin every build for certain configurations. As far as I understand there is no way to do this automatically.
-It would also be cumbersome to manually unpin hundreds of builds when we want to dispose of them.


Please sign in to leave a comment.