We would like to set up TeamCity to monitor our tag directory and automatically build when a new tag is created.
This means that when we have a version ready for release all we need to do is create a tag and TeamCity can then take care of our build, deploy etc.
Currently the only solution is to have a relase branch which we then copy the tag to after we have created it. Ideally we would like to remove this extra step.
Apart from the Actions menu, you can tag a build in the Run Custom Build dialog and in the Pin Build dialog. You can also add and modify build tags using TeamCity REST API.
To add your first project, click Administration in the upper right corner of the TeamCity UI and then click Create project. There are several ways to create a project in TeamCity: automatically from a repository URL, from a connection to a specific VCS, or manually.
Build History in Classic UIClick All history link to open the History tab.
Not sure it can be done as you described as TC wouldn't know what the latest tag is; unless you have an actual Latest
tag which you overwrite each time which is quite common.
Only way I can think to reduce manual work is to perhaps setup your TC Project VSC Root to point at myProj/tags/
then set the check-out rule to +:v1.2.3.4
where v1.2.3.4
is the name of your latest tag.
So when you create a new tag, just update the check-out rule to point at it then hit the build button.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With