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

Hudson doesn't save gitweb configuration

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: git-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      For a git project, switch the Repository browser to gitweb in the Source Code
      Management section and enter a URL. Save the configuration. There're no changes
      afterwards and when going back to the configuration page, the Repository
      browser field is reset to (Auto).

        Attachments

          Activity

          Hide
          pickgr1 pickgr added a comment -

          Are there any work-arounds for this issue?

          Show
          pickgr1 pickgr added a comment - Are there any work-arounds for this issue?
          Hide
          ieure ieure added a comment -

          Edit your config.xml by hand. Under <scm>, add:

          <browser>
              <url>http://gitweb.domain.tld/?p=project-repo.git</url>
          </browser>
          

          Then reload the config from disk.

          Show
          ieure ieure added a comment - Edit your config.xml by hand. Under <scm> , add: <browser> <url>http://gitweb.domain.tld/?p=project-repo.git</url> </browser> Then reload the config from disk.
          Hide
          pickgr1 pickgr added a comment -

          Thank you for the work-around. It works as advertised and was just what I was looking for.

          Show
          pickgr1 pickgr added a comment - Thank you for the work-around. It works as advertised and was just what I was looking for.
          Hide
          eguess74 eguess74 added a comment -

          The problem with this workaround is that you can get only the initial configuration to work. As sson as you will need to change something in the job configuration and save it - you will end up having the same problem (your setting will be overwritten). So you will have to edit your config.xml for the job manually once again and reload the config from the disk. So, this workaround is questionable...

          OTOH I'm not using gitweb, as I don't like the GUI and the overall set up procedure is way too complicated. So, I'm using CGIT - much nicer GUI and easier to setup. It is sad that it is not supported by Git plugin (although i believe it is just a question of one "if" which would generate the URL for changes a bit differently, if CGIT is selected as browser)

          Show
          eguess74 eguess74 added a comment - The problem with this workaround is that you can get only the initial configuration to work. As sson as you will need to change something in the job configuration and save it - you will end up having the same problem (your setting will be overwritten). So you will have to edit your config.xml for the job manually once again and reload the config from the disk. So, this workaround is questionable... OTOH I'm not using gitweb, as I don't like the GUI and the overall set up procedure is way too complicated. So, I'm using CGIT - much nicer GUI and easier to setup. It is sad that it is not supported by Git plugin (although i believe it is just a question of one "if" which would generate the URL for changes a bit differently, if CGIT is selected as browser)
          Hide
          abayer Andrew Bayer added a comment -

          This works now (as of 0.9.1).

          Show
          abayer Andrew Bayer added a comment - This works now (as of 0.9.1).

            People

            • Assignee:
              abayer Andrew Bayer
              Reporter:
              larsko larsko
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: