Is there a way to cause TeamCity to automatically create a label in subversion whenever a build is pinned?
The idea is that after a build is pinned (with a tag entry) TeamCity will take that tag entry and create an identical tag in svn.
Background: We nightly build a setup of our project. This setup then is used internally to install and test the application. About every two weeks or so we release the application to our customer so that it can be tested there as well. This release we pin in TeamCity and set the tag when pinning to the program version. We now would like to label the source with this tag as well.
I'm aware that I can manually cause labeling with "Label this build source". However, I would like to have an automated process.
Currently, the only way to implement this functionality is to write a plugin for TeamCity. The related documentation can be found here.
In the plugin, you can add a listener (which extends BuildServerAdapter). You implement hooks buildTagsChanged or buildPinned. You use method VcsLabelManager#setLabel to set the label for the build.
Regards, KIR
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