Trigger a build based on a VCS tagging event i.e. when CVS label PREFIX_REL_N.N.N applied

Hello, first up Team City really rocks.  Thanks JetBrains Team :-)

I'm using another release management tool that wil tag the code base (in cvs) using predefined convention for the tag prefix.  I would like to configure TeamCity to 'listen'  for this tagging event and run a build once the tagging activity has been applied and TeamCity has detected this.  Is this possible in TeamCity Professional Version 4.0.2 (build 8222) ?  If so how?  Alternatively, is there an api/url call that can be made to TeamCity passing the 'tag' as a parameter to use as a criteria for the check-out & build process.  Many thanks inadvance.

1 comment
Comment actions Permalink


For the time being TeamCity does not provide dedicated functionality to address this case. You can file a request into our issue tracker so that we can see how many votes it will get. Please also describe your case/workflow in more detail so that we can understand the underlying requirements.

As to current workarounds, it seems that the only possible way is to detect the event from outside of TeamCIty and trigger the necessary build (e.g. with HTTP GET request). The triggerer can also provide the name of the label.
And the build should then retrieve the sources from CVS as part of the build script, since TeamCity can only get sources for the fixed VCS root settings.
Here is also a related issue in our tracker.

Another option may be to try to integrate the release management tool into TeamCity and instead of watching new tag creation, try to wrap the activity inside TeamCity. Possibility to do this this greately depends on your workflow.

Best regards,

Yegor Yarko
Project Manager (TeamCity)
JetBrains, Inc
"Develop with pleasure!"


Please sign in to leave a comment.