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

hg password not set correctly when contained in the url

    • 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/

          [JENKINS-15958] hg password not set correctly when contained in the url

          Setting right component.

          Kanstantsin Shautsou added a comment - Setting right component.

          Jesse Glick added a comment -

          Different symptom from JENKINS-16138, but essentially the same issue. The plugin currently has no support for authentication. Plan to do so using the Credentials API rather than having the user put passwords in the URL.

          Jesse Glick added a comment - Different symptom from JENKINS-16138 , but essentially the same issue. The plugin currently has no support for authentication. Plan to do so using the Credentials API rather than having the user put passwords in the URL.

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

              Created:
              Updated:
              Resolved: