Changes between Version 6 and Version 7 of TeamcityPluginIntegration


Ignore:
Timestamp:
Jan 26, 2011, 7:49:30 AM (13 years ago)
Author:
Ryan J Ollos
Comment:

Added lxml dependency.

Legend:

Unmodified
Added
Removed
Modified
  • TeamcityPluginIntegration

    v6 v7  
    2929== Installation ==
    3030
     31 1. Install the `lxml` package (`sudo apt-get install python-lxml` on Ubuntu).
    3132 1. Add a special user in you teamcity installation for this Trac plugin
    32  2. Get latest version from svn:
    33 {{{
     33 1. Get latest version from svn:
     34 {{{
    3435 svn co http://trac-hacks.org/svn/teamcitypluginintegration
    35 }}}
    36  3. Build egg-file and put it to Trac plugins dir:
    37 {{{
    38 python setup.py bdist_egg
    39 cp dist/TeamCityPlugin-X.X-pyX.X.egg /path/to/trac/instance/plugins/
    40 }}}
    41  4. Edit Trac config.ini, enable plugin:
    42 {{{
    43 [components]
    44 teamcity.* = enabled
    45 }}}
    46  5. Add permissions to users allowed to build and/or configure plugin. There are two trac permissions:
    47 TEAMCITY_BUILD (allows to view /trac-instance/builds page and run builds) and TEAMCITY_ADMIN (allows to edit plugin settings).
    48 from console:
    49 {{{
    50 trac-admin /path/to/trac/instance permission add authenticated TEAMCITY_BUILD
    51 }}}
    52  6. Edit plugin settings.
    53 All plugin settings are stored in config.ini, so you can add a new section to
    54 config.ini or go to trac-instance/admin/teamcity/builds and fill the web-form.
    55 
    56 Settings:
    57 {{{
    58 [teamcity]
    59 base_url = http://<you_ci_server>:<port>  # base url to TC server, WITHOUT trailing slash
    60 username = trac
    61 password = trac1                # TC credentials which plugin will use to access TC server
    62 cache_dir = /tmp/teamcity_cache # Plugin will cache here build logs from teamcity
    63 builds = bt1,bt2                # a list of buildTypeId from TC to follow
    64 limit = 10080                   # Number of minutes for timeline.
    65                                 # Plugin will add events to timeline for builds which are newer then now()-limit
    66 }}}
    67 All of described settings you can add to Trac config.ini directly or via admin iface.
     36 }}}
     37 1. Build egg-file and put it to Trac plugins dir:
     38 {{{
     39 python setup.py bdist_egg
     40 cp dist/TeamCityPlugin-X.X-pyX.X.egg /path/to/trac/instance/plugins/
     41 }}}
     42 1. Edit Trac config.ini, enable plugin:
     43 {{{
     44 [components]
     45 teamcity.* = enabled
     46 }}}
     47 1. 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).
     48 {{{
     49 trac-admin /path/to/trac/instance permission add authenticated TEAMCITY_BUILD
     50 }}}
     51 1. 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:
     52 {{{
     53 [teamcity]
     54 base_url = http://<you_ci_server>:<port>  # base url to TC server, WITHOUT trailing slash
     55 username = trac
     56 password = trac1                # TC credentials which plugin will use to access TC server
     57 cache_dir = /tmp/teamcity_cache # Plugin will cache here build logs from teamcity
     58 builds = bt1,bt2                # a list of buildTypeId from TC to follow
     59 limit = 10080                   # Number of minutes for timeline.
     60                                # Plugin will add events to timeline for builds which are newer then now()-limit
     61 }}}
     62 All of described settings you can add to Trac config.ini directly or via admin iface.
    6863
    6964== Recent Changes ==