Reputation: 47911
I am having errors cloning a private bitbucket repo with Jenkins. I've followed the debug steps from here:
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
What am I doing wrong?
ERROR: Error cloning remote repo 'origin' : Could not clone ssh:///[email protected]:myUsername/myRepo.git
hudson.plugins.git.GitException: Could not clone ssh:///[email protected]:myUsername/myRepo.git
Caused by: hudson.plugins.git.GitException: Command "git.exe clone --progress -o origin ssh:///[email protected]:myUsername/myRepo.git C:\Program Files (x86)\Jenkins\workspace\myProject" returned status code 128:
stdout: Cloning into 'C:\Program Files (x86)\Jenkins\workspace\myProject'...
stderr: ssh: connect to host port 22: Bad file number
fatal: The remote end hung up unexpectedly
Upvotes: 0
Views: 5990
Reputation: 47911
Ok, dumb fix.
In jenkins I was putting in the reqpository url in the project configuration like their example
ssh://[email protected]:me/project.git
Which was incorrect, it should be
[email protected]:me/project.git
Upvotes: 4