| You are viewing documentation of TeamCity 5.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version. |
Server-wide settings A plugin can store server-wide setting in main-config.xml file (which is stored in TEAMCITY_DATA_PATH/config directory). To use this file, the plugin should register an extension which implements
jetbrains.buildServer.serverSide.MainConfigProcessor
. Project-wide settings Per-project settings can be stored in TEAMCITY_DATA_PATH/config/<project-name>/plugin-settings.xml directory. You settings should be serialized to XML format by your implementation of jetbrains.buildServer.serverSide.settings.ProjectSettings interface. Methods readFrom and writeTo should be implemented consistently. When your code needs stored XML settings, they should be loaded via ProjectSettingsManager#getSettings call. Your registered factory will create these settings in memory. You can save this project's settings explicitly via jetbrains.buildServer.serverSide.SProject #persist() call, or via ProjectManager#persistAllProjects. This can be done, for instance, upon some event (see jetbrains.buildServer.serverSide.BuildServerAdapter #serverStartup()). |