How Admin can force removal of pinned build from TeamCity

Hi,

I am using TeamCity 6.5.1 and i working as admin for the TeamCity. I have given access to this teamcity server to 20 different project teams. These project teams are running the build and producing build artifacts on my server and frquently they pin the builds. I can not delete pinned build history through cleanup script and since there are too many project (many more are expected to join) this is causing my database (external DB being used) size increase a lot. I can not devote resource to maually search for older pinned builds to unpin and then delete.

Hence am looking for a way to automate the process to remove the older builds even when they are pinned.

Can you please suggest how can I do this. Is there any recommended procedure to clean up such old pinned builds.

Regards

Ruby

3 comments
Comment actions Permalink

We need to setup the cleanup policy asap and we are already at infrastructure limit. Any response from TeamCity folks will be helpful.

0
Comment actions Permalink

Hi Ruby

We consider pinning feature as exactly the way to override cleanup policy. It's intended for release builds that can be required any time later, so must be kept.
Automatic deletion of such builds would cause loss of important data.

I would suggest to unpin these builds manually, and delegate this task to build configuration owners.
Also there is a special permission for build pinning, so in future you can restrict its usage to limited set of users.

Automatic build unpinning can be scripted with REST API.

Michael

0
Comment actions Permalink

Hi Michael,

Thanks for the information. based on your suggestion I will look into scripting aspects.

Regards

Ruby

0

Please sign in to leave a comment.