-
Bug
-
Resolution: Not A Defect
-
Major
-
Windows 7 x64, LAN
We use Mercurial for source control and have a central repository located on a server on the network that we access directly via the file system. I realize that this is not the recommended setup (ssh or https is preferred), but being on the LAN, the security concerns are not an issue.
The problem I have is that the following command WORKS from the command line:
hg clone \\MACHINENAME\Path\To\Repo
... but when I configure the Mercurial plugin to use this path, I get the following error:
Building in workspace C:\Program Files (x86)\Jenkins\workspace\TestProject
$ "C:\Program Files\TortoiseHG\hg.exe" --debug clone --rev default --noupdate \\MACHINENAME\Path\To\Repo "C:\Program Files (x86)\Jenkins\workspace\TestProject"
abort: repository \\MACHINENAME\Path\To\Repo not found!
ERROR: Failed to clone \\MACHINENAME\Path\To\Repo
ERROR: Failed to clone \\MACHINENAME\Path\To\Repo
Finished: FAILURE
I have of course replaced the paths. I have tried every combination of \ and / possible. However the fact that it works from the command-line and not from the plug-in makes me think it's a bug with the plug-in.
Is there a way to do what I'm trying to do without setting up SSH or HTTPS access to the repo?
Did you try file://MACHINENAME/Path/To/Repo/ as the repository location?
Are you positive you are using the same version of Mercurial from Jenkins as you are on the command line? The plugin is forking Mercurial so it should accept the same syntax, but getting backslashes and quotes right when executing commands on Windows can be tricky.