After Fresh Clone with Credentials, runs continue to re-clone

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      When using the Mercurial SCM with configured credentials and a secure HTTP Mercurial server, after cloning from the secure server automatically, the job will continue to re-clone the workspace as the default path in the hgrc file does not match the default path the plugin is using to detect changes.

      Paths:
      Workspace hgrc After Clone: http://jenkins:jenkins@myhgserver/test-repo
      Job's Server Config: http://myhgserver/test-repo

      Console output from job builds:

      Started by an SCM change
      [EnvInject] - Loading node environment variables.
      Building remotely on build-tools in workspace /jenkins/workspace/test
      [hg-clone-test] $ hg showconfig paths.default
      ERROR: Workspace reports paths.default as http://jenkins:jenkins@myhgserver/test-repo/
      which looks different than http://myhgserver/test-repo/
      so falling back to fresh clone rather than incremental update
      $ hg clone --rev default --noupdate ******** /jenkins/workspace/test
      adding changesets
      adding manifests
      

      Config.xml SCM section:

      <scm class="hudson.plugins.mercurial.MercurialSCM" plugin="mercurial@1.47">
        <source>
          http://myhgserver/test-repo
        </source>
        <modules/>
        <branch>default</branch>
        <clean>true</clean>
        <credentialsId>verylargesecretcrazycredentialsidnumber</credentialsId>
      </scm>
      

            Assignee:
            Jesse Glick
            Reporter:
            Kyle Leinen
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: