We use the git flow development model and have TeamCity building our git repos for all branches (master, develop and feature branches). Is there a way to configure a build history cleanup by branch? We would like to keep all artifacts from master, but cleanup transient feature branch artifacts. It seems that the build history cleanup policy applies to all branches of a particular project.
I understand that builds could be pinned to keep them around. Is it possible to automatically pin all master branch builds? This could potentially ahieve our goal.