File rotation in TeamCity

I'm new to TeamCity and right now I'm trying to create new installation.
Almost everything is completed, I mean, checkout solution, build it, create setup file using Inno Setup only one thing left, I need to implement setup file rotation. I want to store only N of latest setup files and I'm not sure how I can do it, maybe someone knows?

Thanks in advance.

1 comment
Comment actions Permalink

You can achieve that using the cleanup policy.  Have a look at the relevant documentation here.  You can set it to run everynight and delete any artifacts that are older than the nth successfull build or n days older than the last build.  That is if I am understanding your question correctly.


Please sign in to leave a comment.