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.
If you have any issues, create a new ticket.
Download the zipped source from here.
- Install the
lxmlpackage. for example:
sudo apt-get install python-lxmlon Ubuntu.
- Add a special user in your Teamcity installation for this Trac plugin.
- Get latest version from svn:
svn co https://trac-hacks.org/svn/teamcitypluginintegration
- Build egg-file and place it in the Trac plugins directory:
python setup.py bdist_egg cp dist/TeamCityPlugin-X.X-pyX.X.egg /path/to/trac/instance/plugins/
trac.inito enable the plugin:
[components] teamcity.* = enabled
- Add permissions to users allowed to build and/or configure the plugin. There are two TeamCity permissions:
TEAMCITY_BUILDallows to view /trac-instance/builds page and run builds.
TEAMCITY_ADMINallows to edit plugin settings.
trac-admin /path/to/trac/instance permission add authenticated TEAMCITY_BUILD
- Edit plugin settings. All plugin settings are stored in config.ini, so you can add a new section to
trac.inior go to
trac-instance/admin/teamcity/buildsand fill the web-form. Settings:All of the described settings can be added to
[teamcity] 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
trac.inidirectly or enabled via the admin interface.
- 13694 by rjollos on 2014-02-20 03:41:33
add_script. Fixes #11589.
- 13693 by rjollos on 2014-02-20 03:41:27
Replaced tabs with spaces using
- 13351 by johnatannvmd on 2013-08-13 08:13:52
[teamcity-plugin] Fix missed Content-Length. Update version.
TeamCity_builds.png (61.9 KB) - added by 6 years ago.
teamcity 'builds' page screenshot
TeamCity_configuration.png (73.7 KB) - added by 6 years ago.
teamcity plugin admin interface
TeamCity_timeline.png (124.9 KB) - added by 6 years ago.
teamcity plugin timeline screenshot
Download all attachments as: .zip