-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: mercurial-plugin
-
Environment:Jenkins 1.531
Credentials 1.8.2
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>