Dynamically setting TeamCity version numbers based on the current branch
Blog post from Octopus Deploy
Paul Stovell's blog post from November 2014 offers a guide on customizing build numbers in TeamCity for projects with multiple branches, using a branching workflow like GitFlow. He explains how to generate different build numbers for branches such as master, develop, release, and feature branches through the use of PowerShell scripts and TeamCity parameters. The post highlights the importance of dynamically setting build numbers using service messages and adjusting them based on the branch name, ensuring each build remains unique and traceable. This method allows for coherent integration with other tools like OctoPack, where the build number can be used to specify package versions, thereby maintaining consistency across deployment pipelines.