Teamcity integration plugin

Description

This is an integration plugin for Continuous Integration and Build Server Teamcity (http://www.jetbrains.com/teamcity/).

Bugs/Feature Requests

Existing bugs and feature requests for TeamcityPluginIntegration are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

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

Example

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

Installation

  1. Install the lxml package (sudo apt-get install python-lxml on Ubuntu).
  2. Add a special user in you teamcity installation for this Trac plugin
  3. Get latest version from svn:
     svn co http://trac-hacks.org/svn/teamcitypluginintegration
    
  4. Build egg-file and put it to Trac plugins dir:
     python setup.py bdist_egg
     cp dist/TeamCityPlugin-X.X-pyX.X.egg /path/to/trac/instance/plugins/
    
  5. Edit Trac config.ini, enable plugin:
     [components]
     teamcity.* = enabled
    
  6. Add permissions to users allowed to build and/or configure plugin. There are two trac permissions: TEAMCITY_BUILD (allows to view /trac-instance/builds page and run builds) and TEAMCITY_ADMIN (allows to edit plugin settings).
     trac-admin /path/to/trac/instance permission add authenticated TEAMCITY_BUILD
    
  7. Edit plugin settings. All plugin settings are stored in config.ini, so you can add a new section to config.ini or go to trac-instance/admin/teamcity/builds and fill the web-form. Settings:
     [teamcity]
     base_url = http://<you_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 then now()-limit
    
    All of described settings you can add to Trac config.ini directly or via admin iface.

Recent Changes

[10229] by siniy on 05/24/11 12:56:25

[teamcity-plugin] Fixed broken link on the Builds page Fixed plugin administration form

[10104] by siniy on 04/19/11 07:04:28

[teamcity-plugin] Fixed invalid reference to undefined proj_id when there are not any teamcity builds for this project

[10081] by siniy on 04/14/11 12:09:53

Fixed broken download links Get teamcity xml feed using http basic auth Added lxml as a dependency to setup.py Minor js fixes

[9799] by siniy on 01/26/11 07:41:48

Fixed broken urls for new builds Set default socket timeout to 3 seconds Minor templates updates

Author/Contributors

Author: siniy
Maintainer: siniy
Contributors:

Attachments