Set up a Mercurial VCS root to pull from a tag
Answered
I am using TeamCity Professional 9.1.5 (build 37377). I want to be able to have my VCS root pull from a specific tag instead of getting the latest commits in the branch. I have the 'Use tags as branches' checkbox checked. I have tried many different ways to specify the tag in Branch Specifications but none have worked. Is there a certain syntax to pull from a tag that is different from pulling from a branch? If so then please tell me and please update the documentation for Mercurial VCS roots because it does not specify that there is a different syntax for using tags as branches.
Any comments would be helpful! Thank you!
Please sign in to leave a comment.
I figured out how. More or less a misunderstanding on my end. I had set my default branch to develop (the branch where the tag is in) then in Branch Specification I had +:TagName. I assumed that if I clicked the Run button in my build configuration and ran the build, that the VCS root should pull from that tag automatically. I didn't know that you have to go to the Changes tab in the Run Custom Build dialog, and change the Build branch to the tag name. After I did that, the VCS root pulled from that tag