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

Mercurial - paths.default is set incorrectly at checkout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      jenkins 2.284
      Mercurial plugin 2.14
    • Similar Issues:
    • Released As:
      2.16

      Description

      With latest version of Mercurial plugin (2.14), the Mercurial clone configuration is not correct.

      The "paths.default" does not contains the Repo URL, but instead it contains the clone PATH on the file system followed by the Repo URL.

      For instance:
      paths.default=/var/lib/jenkins/workspace/my_job/https\:/hg.mydns.com/hg/myrepo

       

      instead of:

      paths.default=https://hg.mydns.com/hg/myrepo

       

      the problem appeared since version 2.14. After rollback to plugin 2.12, no issues.

       

      because of this, we cannot run "hg push" command as the URL is incorrect in the local repo

        Attachments

          Issue Links

            Activity

            Hide
            kahluagenie Oleg Kalugin added a comment -

            The path that gets saved in .hg/hgrc gets the colon escaped. So instead of being like "ssh://my-repo" it becomes "ssh\://my-repo"
            So mercurial then barfs when attempting to use that path. When I fixed the path in hgrc, it let me push successfully

            Show
            kahluagenie Oleg Kalugin added a comment - The path that gets saved in .hg/hgrc gets the colon escaped. So instead of being like "ssh://my-repo" it becomes "ssh\://my-repo" So mercurial then barfs when attempting to use that path. When I fixed the path in hgrc, it let me push successfully
            Hide
            azwicky Andrew Zwicky added a comment - - edited

            I can confirm the same issue was present at 2.15, and a downgrade to 2.12 solved the issue as well.

            We are running Mercurial Distributed SCM (version 4.2.1)

            Show
            azwicky Andrew Zwicky added a comment - - edited I can confirm the same issue was present at 2.15, and a downgrade to 2.12 solved the issue as well. We are running Mercurial Distributed SCM (version 4.2.1)
            Hide
            jglick Jesse Glick added a comment -

            I have filed a proposed fix. If there is anyone able to reproduce, please try to verify the fix. Assuming the pull request build succeeds, there should be a continuous-integration/jenkins/incrementals link available soon https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/mercurial/2.16-rc1210.a462f72c1bdd/mercurial-2.16-rc1210.a462f72c1bdd.hpi which you can download and install in a Jenkins server using the Advanced tab of the plugin manager.

            Show
            jglick Jesse Glick added a comment - I have filed a proposed fix. If there is anyone able to reproduce, please try to verify the fix. Assuming the pull request build succeeds, there should be a continuous-integration/jenkins/incrementals link available soon https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/plugins/mercurial/2.16-rc1210.a462f72c1bdd/mercurial-2.16-rc1210.a462f72c1bdd.hpi which you can download and install in a Jenkins server using the Advanced tab of the plugin manager.
            Hide
            nletolle Nicolas Letolle added a comment -

            It is working on my platform with this latest update. I was able to build and commit using this latest plugin.

            Thanks.

            Show
            nletolle Nicolas Letolle added a comment - It is working on my platform with this latest update. I was able to build and commit using this latest plugin. Thanks.
            Hide
            jglick Jesse Glick added a comment -

            Nicolas Letolle thanks for confirming! I will proceed with a merge and release then.

            Show
            jglick Jesse Glick added a comment - Nicolas Letolle thanks for confirming! I will proceed with a merge and release then.

              People

              Assignee:
              jglick Jesse Glick
              Reporter:
              nletolle Nicolas Letolle
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: