Hudson Trac Integration Plugin
Description
Integrate Hudson build results into the Trac timeline and (optionally) provide a navbar menu to link to the Hudson instance.
This plugin works very similar to the LuntbuildTracIntegration plugin and the Trac Continuum plugin. The build results are obtained from one of the RSS feeds Hudson provides.
Dependencies
This plugin requires that the python-feedparser library is installed on your system.
Configuration
There are 8 options you can configure in your trac.ini under the section [hudson] (if you have the IniAdminPlugin installed they will show up under hudson):
- feed_url
- The url of the hudson rss feed containing the build statuses. Example: http://localhost/hudson/rssAll
- username
- The username to use when accessing hudson (both the feed itself as well as the job descriptions); leave empty if no authentication is needed.
- password
- The password to use when accessing hudson; leave empty if no authentication is needed.
- display_subprojects
- If set to true then display subprojects in the timeline too; otherwise only top-level projects are displayed.
- main_page
- The url of the hudson page to link to from the trac mainnav; if empty, no entry is created in the mainnav. Example: /hudson/
- display_in_new_tab
- If set to true then open the above hudson page in a new tab (or window) instead of in the current tab/window. Not used if main_page is not set.
- alternate_success_icon
- Display a green ball instead of the standard blue one for successful builds.
- display_build_descriptions
- Whether to display the build descriptions for each build instead of the canned "Build finished successfully" etc messages.
Bugs/Feature Requests
Existing bugs and feature requests for HudsonTracPlugin are here.
If you have any issues, create a new ticket.
Download and Source
Download the zipped source, check out using Subversion, or browse the source with Trac.
Recent Changes
[6101] by roadrunner on 06/26/09 10:02:25
Ensure url-opener is always properly closed.
[6100] by roadrunner on 06/26/09 10:01:03
Fixed authentication handling. There were two issues:
- need to register the auth info for all paths not just the feed, because the descriptions will have different paths
- feedparser's authentication handling is broken (there's an over two year old bug report on it at http://code.google.com/p/feedparser/issues/detail?id=40 but the fix there is not correct). So we just open the url ourselves which avoids feedparser's handler and hence the problem.
This really fixes #4113 and hopefully addresses #5430.
[6099] by roadrunner on 06/26/09 06:03:35
Code indentation fix.
[6098] by roadrunner on 06/26/09 05:33:51
Raise an error instead of silently listing no builds if an error occurred trying to get the feed.
Author/Contributors
Author: roadrunner
Contributors:

