Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

i am not able to communicate my Bitbucket Server with jenkins

AB_Audinate
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2018
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

1 answer

0 votes
Prasanth
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 14, 2018

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events