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

Support Git for "Repository browser" setting

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      In the Trac Plugin documentation the configuration is described as

      In the Source Code Management section, choose "Trac" for the "Repository browser" setting.

      This settings "Trac" is not available for when I use git as a SCM.

      Can this selection be added?


      The Trac-plugin code supports "TracGit" for the "Repository browser" setting. The given Trac URL at the top of the job settings will be used to generate links for git changesets, files and diffs to your Trac "Browse Source" area.

        Attachments

          Activity

          Hide
          gerd_zanker Gerd Zanker added a comment -

          I debugged the code from the other patch. You are right - issue JENKINS-7032 not the same as this one. It will remove a part from the URL and you want to add a part to the URL.

          So there is one question open: From where to get the repository Name?

          Shall the repo name be derived from the git URL setting in Job configuration? => I can access the URL but I need a matching pattern to get the name from the url.
          Is it always a the same repo name for one Jenkins Job? => I could add an optional text field to the Trac settings of the Job configuration to enter the name, which would be an easy task.

          Show
          gerd_zanker Gerd Zanker added a comment - I debugged the code from the other patch. You are right - issue JENKINS-7032 not the same as this one. It will remove a part from the URL and you want to add a part to the URL. So there is one question open: From where to get the repository Name? Shall the repo name be derived from the git URL setting in Job configuration? => I can access the URL but I need a matching pattern to get the name from the url. Is it always a the same repo name for one Jenkins Job? => I could add an optional text field to the Trac settings of the Job configuration to enter the name, which would be an easy task.
          Hide
          gerd_zanker Gerd Zanker added a comment -

          Attached trac-1.14-SNAPSHOP build for testing. For Git it can add a string after the Trac URL for browsing the source code (http://trac.mycompany.com/browser/<append>) This shall support multiple repositories within one Trac site.

          Show
          gerd_zanker Gerd Zanker added a comment - Attached trac-1.14-SNAPSHOP build for testing. For Git it can add a string after the Trac URL for browsing the source code ( http://trac.mycompany.com/browser/ <append>) This shall support multiple repositories within one Trac site.
          Hide
          gerd_zanker Gerd Zanker added a comment -

          Hello Rob,
          do you have any feedback about the SNAPSHOP version?
          Bye,
          Gerd

          Show
          gerd_zanker Gerd Zanker added a comment - Hello Rob, do you have any feedback about the SNAPSHOP version? Bye, Gerd
          Hide
          tauschb Bernhard T added a comment -

          Hi Gerd,
          I am looking for the identical feature for svn urls. The repository stays the same for one Jenkins job. Hence an additional settings input field for the trac repository name would do perfectly.

          Bernhard

          Show
          tauschb Bernhard T added a comment - Hi Gerd, I am looking for the identical feature for svn urls. The repository stays the same for one Jenkins job. Hence an additional settings input field for the trac repository name would do perfectly. Bernhard
          Hide
          gerd_zanker Gerd Zanker added a comment - - edited

          Wrap up (after times of testing and learning for me):
          This ticket was to get an initial git support for the Trac plugin. From my point of view this goal is reached.

          But two issues are open:

          1. Multiple repositories URL in the same job in combination with a Trac setup for multiple git repositories.
          2. Trac browser URL can not always be created by appending the Trac URL and the changed file path.
            Sometimes the file path must be truncated (see JENKINS-7032), sometime the file path must be extended by a prefix.

          I will now close this issue and create two new ones (JENKINS-13365 and JENKINS-13366) to follow up the two different concerns separately.
          Gerd

          Show
          gerd_zanker Gerd Zanker added a comment - - edited Wrap up (after times of testing and learning for me): This ticket was to get an initial git support for the Trac plugin. From my point of view this goal is reached. But two issues are open: Multiple repositories URL in the same job in combination with a Trac setup for multiple git repositories. Trac browser URL can not always be created by appending the Trac URL and the changed file path. Sometimes the file path must be truncated (see JENKINS-7032 ), sometime the file path must be extended by a prefix. I will now close this issue and create two new ones ( JENKINS-13365 and JENKINS-13366 ) to follow up the two different concerns separately. Gerd

            People

            • Assignee:
              gerd_zanker Gerd Zanker
              Reporter:
              gerd_zanker Gerd Zanker
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: