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

Extensions

Last modified: 20 April 2023

Extension in TeamCity is a point where standard TeamCity behavior can be changed. There are three marker interfaces for TeamCity extensions:

Extension interface implements one of these marker interfaces. ServerExtension and AgentExtension are used to mark server and agent side extensions correspondingly. TeamCityExtension is the base interface for ServerExtension and AgentExtension. Thus you can take a list of all available extensions in TeamCity by taking a look at interfaces which extend these marker interfaces.

Registering custom extension



There are two ways to register custom extension:

  1. define a bean in the Spring context which implements extension interface, in this case your extension will be loaded automatically

  2. register your extension at runtime in the service (can be obtained by Spring autowiring feature)

Available extensions



Server-side extensions