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

hg password not set correctly when contained in the url

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • mercurial-plugin
    • None

      I've configured my build job to poll from a hg repository and build when it detected changes.

      This failed because the authorization was not working correctly.

      To reproduce:

      For us the problem was that although the mercurial url contained username and password, the password did not get retained in the url in the .hg/hgrc config.

      i.e. it would read

      1. cat .hg/hgrc
        [paths]
        default = http://user@host/path/to/hg/

      instead of

      1. cat .hg/hgrc
        [paths]
        default = http://user:password@host/path/to/hg/

            jglick Jesse Glick
            dwt Martin Häcker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: