TeamCity
 
You are viewing the documentation for an earlier version of TeamCity.

Plugin API FAQ

Last modified: 20 April 2023

What are basic entry points for TeamCity API?



See initial notes on Server Side Extensions and Typical Plugins pages.

How to create hooks for build start/fail/success and other events?



Implement BuildServerListener (or, better, extend BuildServerAdapter).

How to label sources?



For a finished build, you can label sources using the SFinishedBuild:setLabel call. A list of VCS Roots can be created using the results of SBuild:getVcsRootEntries call.