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

Changed mercurial repository path is ignored by existing workspaces

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • mercurial-plugin
    • Jenkins 1.447
      Mercurial plugin version 1.38

      I just changed the repository paths for a large set of jobs using hg repositories.

      But polling logs still showed the previously configured paths, where hg can no longer find a repository. The problem is that a simple hg pull is done when polling. The remote path is not part of the command, but the default of the local workspace (=>hgrc) is used. => If there is an existing workspace, it will never pick up the new path, but always try to pull from the previous one.

      If instead the hg pull command specified the repository path configured in the jobs's configuration, one could easily change the location of the repository afterwards without having to clean up all workspaces.

      I patched .hg/hgrc in all workspaces now to make use of the new path, but it would have been nice if Jenkins picked them up automagically.

          [JENKINS-14903] Changed mercurial repository path is ignored by existing workspaces

          Lars Hupel added a comment -

          I'm experiencing the exact same issue.

          Lars Hupel added a comment - I'm experiencing the exact same issue.

            kohsuke Kohsuke Kawaguchi
            danielweber Daniel Weber
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: