Integrate the Teamcity build service into Trac


This is an integration plugin for Continuous Integration and Build Server Teamcity. Teamcity is a build and integration server by the JetBrains company. It is free to use, but proprietary licensed.

This plugin provides 'build' events from Teamcity server to your Trac timeline and creates control buttons and progress bars for selected Teamcity builds.

Bugs/Feature Requests

Existing bugs and feature requests for TeamcityPluginIntegration are here.

If you have any issues, create a new ticket.


4 / 4


1 / 1


Download the zipped source from here.


You can check out TeamcityPluginIntegration from here using Subversion, or browse the source with Trac.


  1. Install the lxml package. for example: sudo apt-get install python-lxml on Ubuntu.
  2. Add a special user in your Teamcity installation for this Trac plugin.
  3. Get latest version from svn:
    svn co
  4. Build egg-file and place it in the Trac plugins directory:
    python bdist_egg
    cp dist/TeamCityPlugin-X.X-pyX.X.egg /path/to/trac/instance/plugins/
  5. Edit trac.ini to enable the plugin:
    teamcity.* = enabled


  1. Add permissions to users allowed to build and/or configure the plugin. There are two TeamCity permissions:
    • TEAMCITY_BUILD allows to view /trac-instance/builds page and run builds.
    • TEAMCITY_ADMIN allows to edit plugin settings.
      trac-admin /path/to/trac/instance permission add authenticated TEAMCITY_BUILD
  2. Edit plugin settings. All plugin settings are stored in config.ini, so you can add a new section to trac.ini or go to trac-instance/admin/teamcity/builds and fill the web-form. Settings:
    base_url = http://<your_ci_server>:<port>  # base url to TC server, WITHOUT trailing slash
    username = trac 
    password = trac1                           # TC credentials which plugin will use to access TC server
    cache_dir = /tmp/teamcity_cache            # Plugin will cache here build logs from Teamcity
    builds = bt1,bt2                           # A list of buildTypeId from TC to follow
    limit = 10080                              # Number of minutes for timeline
                                # Plugin will add events to timeline for builds which are newer than now()-limit
    All of the described settings can be added to trac.ini directly or enabled via the admin interface.

Recent Changes

13694 by rjollos on 2014-02-20 02:41:33
Replaced deprecated add_javascript with add_script. Fixes #11589.
13693 by rjollos on 2014-02-20 02:41:27
Replaced tabs with spaces using
13351 by johnatannvmd on 2013-08-13 06:13:52
[teamcity-plugin] Fix missed Content-Length. Update version.


Author: siniy
Maintainer: Evgeniy Tetenchuk

Last modified 16 months ago Last modified on Jun 1, 2022, 7:03:52 AM

Attachments (3)

Download all attachments as: .zip