TeamCity 3.0 Help

Web UI Extensions

Web resources (jsp, css, js, etc) should be placed into the plugin jar file under the path buildServerResources/. After that you should register this jar in the WebResourcesManager. This should be done while Spring is creating objects (i.e. in the plugin constructor). For example:

public class MyPlugin { public MyPlugin(WebResourcesManager resourcesManager) { resourcesManager.addPluginResources("myPlugin", "myPlugin.jar"); } }

Plugin jar should be placed into the /WEB-INF/lib/ directory. Resources like buildServerResources/file.js will be unpacked under the name /plugins/aPluginName/file.js. You can obtain this path with help of WebResourcesManager.resourcePath() method.

Last modified: 20 April 2023