我在使用Jenkins克隆私人bitbucket repo时遇到错误。我从这里开始遵循调试步骤:
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin
我做错了什么?
ERROR: Error cloning remote repo 'origin' : Could not clone ssh:///git@bitbucket.org:myUsername/myRepo.git
hudson.plugins.git.GitException: Could not clone ssh:///git@bitbucket.org:myUsername/myRepo.git
Caused by: hudson.plugins.git.GitException: Command "git.exe clone --progress -o origin ssh:///git@bitbucket.org: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
答案 0 :(得分:4)
好的,愚蠢的修复。
在jenkins中,我在项目配置中添加了reqpository url,就像他们的示例
一样SSH://git@bitbucket.org:我/ project.git
哪个不正确,应该是
git@bitbucket.org:我/ project.git