Take the 2-minute tour ×

I am trying to setup Jenkins with Bitbucket but when I try to build, Jenkins hangs here forever:

[project] $ hg showconfig paths.default
[project] $ hg pull --rev default

I have looked at this post: Jenkins, Mercurial, Bitbucket and SSH not working and the documentation here https://wiki.jenkins-ci.org/display/JENKINS/Mercurial+Plugin but I still have the same issue.

I am running Windows 7 64-bit and TortoiseHG 64-bit. I changed jenkins.xml to use the 64-bit jvm and still nothing. I have tried using the 32-bit Plink and still nothing.

I have also tried turning off source control from the build configuration and I am running hg pull from a batch script. I get the same thing there as well. If I run the batch in the command prompt it works...

I would be grateful for any help.

share|improve this question

1 Answer 1

Have you checked the console output?

Might be a credentials issue. I had a similar issue with a git repository.

share|improve this answer
I have this is where I copy-pasted this from: [project] $ hg showconfig paths.default [project] $ hg pull --rev default –  sirival Nov 9 '12 at 16:22
What happens when you execute that command from the console on jenkins machine? –  Edson Medina Nov 12 '12 at 9:21
When I run the command from the console everything works fine. I only have the problem when I run it from the Jenkins web interface. I found that it all works if I run Jenkins through Tomcat. If I run it using the Jenkins Windows service it fails. –  sirival Nov 12 '12 at 13:20
Check which user its running under –  Edson Medina Nov 12 '12 at 15:21
I'm running it with security turned off. If security is on should I create a Jenkins user with the same username as the Windows user? –  sirival Nov 12 '12 at 19:28

Your Answer


