Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13365

Support multiple repositories URL

    Details

    • Type: Improvement
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: trac-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      Support multiple repositories URL for git and svn in the same Jenkins job.
      This will work only in combination with a single Trac page with a setup for multiple git repositories.

        Attachments

          Issue Links

            Activity

            Hide
            tafthorne Thomas A. F. Thorne added a comment -

            I followed through a selection of bugs to get here. Is there a work around for even 1 repository? I take it that I should configure Trac to default URLs without a repository name to be the repository I care about most of all.

            Show
            tafthorne Thomas A. F. Thorne added a comment - I followed through a selection of bugs to get here. Is there a work around for even 1 repository? I take it that I should configure Trac to default URLs without a repository name to be the repository I care about most of all.
            Hide
            roman80 Roman80 added a comment -

            In my opinion the repository must be added at the end of the url e.g.:

            Current: [TRAC-URL]/changeset/6125e371601ae14ad41acf320b3fa7bc98ed484e
            Should: [TRAC-URL]/changeset/6125e371601ae14ad41acf320b3fa7bc98ed484e/MyRepo

            If I add "/MyRepo" to the url it works as it should

            Show
            roman80 Roman80 added a comment - In my opinion the repository must be added at the end of the url e.g.: Current: [TRAC-URL] /changeset/6125e371601ae14ad41acf320b3fa7bc98ed484e Should: [TRAC-URL] /changeset/6125e371601ae14ad41acf320b3fa7bc98ed484e/MyRepo If I add "/MyRepo" to the url it works as it should
            Hide
            tafthorne Thomas A. F. Thorne added a comment -

            I agree with Roman80. Always adding the "/MyRepo" to the end of the URL would solve the issue. This would need to follow each repository that is hosted, although it could be omitted for a default repo if it exists.

            Show
            tafthorne Thomas A. F. Thorne added a comment - I agree with Roman80. Always adding the "/MyRepo" to the end of the URL would solve the issue. This would need to follow each repository that is hosted, although it could be omitted for a default repo if it exists.
            Hide
            fry2k Martin Wagner added a comment -

            Always adding the repo name /MyRepo to the end works for a changeset but doesn't work for a diff link or a source file link.

            I set the trac url to http://trac/MyRepo/ and used the following mod rewrite rules so far:
            RewriteRule ^/MyRepo/changeset/(\d+)(/.+)?$ /changeset/$1/MyRepo$2 [L,R]
            RewriteRule ^/MyRepo/browser/(.+)$ /browser/MyRepo/$1 [L,R]
            RewriteRule ^/MyRepo/$ / [L,R]

            Show
            fry2k Martin Wagner added a comment - Always adding the repo name /MyRepo to the end works for a changeset but doesn't work for a diff link or a source file link. I set the trac url to http://trac/MyRepo/ and used the following mod rewrite rules so far: RewriteRule ^/MyRepo/changeset/(\d+)(/.+)?$ /changeset/$1/MyRepo$2 [L,R] RewriteRule ^/MyRepo/browser/(.+)$ /browser/MyRepo/$1 [L,R] RewriteRule ^/MyRepo/$ / [L,R]

              People

              • Assignee:
                Unassigned
                Reporter:
                gerd_zanker Gerd Zanker
              • Votes:
                6 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: