ERROR: Failed to clone
java.io.IOException: Cannot run program "C:\Program Files\TortoiseHg/bin/hg": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:249) at hudson.Proc$LocalProc.<init>(Proc.java:218) at hudson.Launcher$LocalLauncher.launch(Launcher.java:935) at hudson.Launcher$ProcStarter.start(Launcher.java:454) at hudson.Launcher$ProcStarter.join(Launcher.java:465) at hudson.plugins.mercurial.MercurialSCM.clone(MercurialSCM.java:835) at hudson.plugins.mercurial.MercurialSCM.checkout(MercurialSCM.java:592) at hudson.scm.SCM.checkout(SCM.java:504) at hudson.model.AbstractProject.checkout(AbstractProject.java:1208) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) at hudson.model.Run.execute(Run.java:1815) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 17 more
Hi Anirudha
Bitbucket Server doesn't support Mercurial, are you using hg-git plugin ?
From the error message I could see that Jenkins trying to execute Mercurial command and it can't find the executable.
You may need to check your build configuration or Jenkins settings.
Best regards,
Prasanth Thaikkalloor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.