Skip to end of metadata
Go to start of metadata

Plugin Information

View Edgewall Trac on the plugin site for more information.

Trac Plugin


This plugin creates links from Jenkins projects to Trac instances. Trac is a wiki-based issue tracking system written in Python and supported by Edgewall Software.
The Trac plugin decorates Jenkins "Changes" HTML to create links to your Trac wiki, tickets, changesets, and source browser.
As an example, if you committed a change with the following log message:

Reverted changeset:123 to close ticket #456.

your Jenkins job changes page would make changeset:123 and #456 hyperlinks to the appropriate Trac changeset and ticket pages, respectively.

In the Jenkins change details, there would be a link to the Trac pages for the:

  • changeset committed,
  • files changed, and
  • diff of the changes for each changed file.

    Integrating Jenkins into Trac

    Since you are interested in using Jenkins with Trac, you'll likely find this would be useful, which adds the Jenkins build history to the Trac time line.

Configuration

  • Navigate to the Configuration page for your job.
  • In the top section find the setting for "Trac website" and enter the url of your trac instance, eg. http://devserver.company.com/trac.
  • In the Source Code Management section, choose for "Trac" for the "Repository browser" when you use subversion or if you use git choose "TracGit".
  • Save your changes.

Change Log

Version 1.13 (Jan 9, 2012)

Version 1.12 (Nov 4, 2011)

Version 1.11 (Nov 4, 2011)

  • botched release, sorry

Version 1.10 (Mar 3, 2010)

  • Update code for more recent Hudson.

Version 1.9 (Sep 2, 2009)

  • Simplify regular expressions so it doesn't tickle a Java regular expression problem.

Version 1.8 (Feb 19, 2009)

Version 1.7 (Jul 2, 2008)

  • Trying to configure Trac as a repository browser with Hudson 1.231 results in 500 (JENKINS-1966)

Version 1.6 (Jun 12, 2008)

  • Added a link to Trac in the sidebar (discussion)

2 Comments

  1. Unknown User (mattis@xait.no)

    I have a problem with the links in the changes page.

    In my subversion repository, the files are located in:

    • svn://svn.xxx.com/Repo/Product/Trunk/subdir/file.txt

    The links will then point at:

    But my Trac installation has its root at Product/Trunk/, so the only link that would work is:

    Is there any way to tell the plugin that my Trac project has its root set at svn://svn.xxx.com/Repo/Product/Trunk/ and not svn://svn.xxx.com/Repo/ ?

  2. @Mattis: I run into the same problem. I attached a patch at JENKINS-7032 that enhances TracPlugin with a new property called "Trac source repository browser prefix". Any path entered there will be subtracted from the URL before opening the Trac browser. That is, in your example, enter "/Product/Trunk" so that this prefix will be removed from the path.