Status: Reopened (View Workflow)
Trac plugin 1.10, Hudson 1.365, Trac 0.11.2.1
I have a problem with the links in the changes page.
In my subversion repository, the files are located in:
The links will then point at:
But my Trac installation has its root at Product/Trunk/, so the only link that would work is:
It seems there is no way to tell the plugin that my Trac project has its root set at svn://svn.xxx.com/Repo/Product/Trunk/ instead of svn://svn.xxx.com/Repo/ .
dmoebius: Thanks a lot for creating this patch, looking forward to seeing a fix.
Code changed in jenkins
User: Gerd Zanker
Added test for existing subversion TracRepositoryBrowser class to have a
clean, tested base for JENKINS-7032 and
My Trac instance supports multiple Git repositories. The Trac 1.0.1 wiki "Start Page" is here:
and the "Browse Source" button takes me to the Repository Index:
This is very similar to the Trac 1.2.2 demo page at
When I configure the "Trac website" for my xy_code repository as follows:
the Jenkins project Trac link provides that link and that works as expected.
However, with TracGit selected as the "Repository browser" the TracGit links are not created correctly. An example, TracGit link from a Jenkins "Changes" page to a particular changeset incorrectly gives:
instead of the correct link:
Again, the structure of my correct link is similar to the structure of a changeset link in the Trac 1.2.2 demo:
Using Jenkins 2.60.1 and Trac Plugin 1.13
I googled '"Powered by Trac 1.2" git' and followed the "Browse Source" links for several public Trac sites. It looks to me as if those sites that are NOT structured so as to have a "Default Repository" as well as a "Repository Index" on the top-level browser page are the sites that Jenkins is currently configured to support. See the differences, for example, for these two cases with svn repositories:
I'm pretty sure that the problem only occurs when using one of the repositories that is NOT considered the "Default Repository". There is a public git repository that allows demonstration of the problem at https://devel.rtems.org/ The rtems-docs repository is not the default repository, so I set the following two fields in the Jenkins configuration as follows:
Trac website: https://devel.rtems.org/
Repository URL: git://git.rtems.org/rtems-docs.git
Then for the changeset 5ffa072 Jenkins incorrectly generates this TracGit link:
instead of the correct:
FYI, I created a patch to enhance the plugin with a new string parameter called "Trac source repository browser prefix" (couldn't come up with a better name). You may enter any path into this textfield. The plugin will subtract this prefix from the URL before opening the Trac browser.
The online help for this new field needs more explanation.