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

Hudson doesn't save gitweb configuration

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • git-plugin
    • None
    • Platform: All, OS: All

    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

          pickgr1 pickgr added a comment -

          Are there any work-arounds for this issue?

          pickgr1 pickgr added a comment - Are there any work-arounds for this issue?
          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.

          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.
          pickgr1 pickgr added a comment -

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

          pickgr1 pickgr added a comment - Thank you for the work-around. It works as advertised and was just what I was looking for.
          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)

          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)
          abayer Andrew Bayer added a comment -

          This works now (as of 0.9.1).

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: