克隆比特桶詹金斯的私人git回购协议

克隆比特桶詹金斯的私人git回购协议,git,github,jenkins,bitbucket,Git,Github,Jenkins,Bitbucket,我在克隆Jenkins的私人bitbucket回购协议时出错。我从这里开始遵循调试步骤: 创建ssh密钥将ssh密钥作为部署密钥添加到bitbucket 在服务器上的我的用户帐户中成功克隆了具有该ssh密钥的repo 已将密钥和已知主机复制到C:\Windows\SysWOW64\config\systemprofile.ssh中 检查Jenkins服务是否在本地系统帐户下运行 开始构建,然后->错误 我做错了什么 ERROR: Error cloning remote repo 'origi

我在克隆Jenkins的私人bitbucket回购协议时出错。我从这里开始遵循调试步骤:

  • 创建ssh密钥将ssh密钥作为部署密钥添加到bitbucket
  • 在服务器上的我的用户帐户中成功克隆了具有该ssh密钥的repo
  • 已将密钥和已知主机复制到C:\Windows\SysWOW64\config\systemprofile.ssh中
  • 检查Jenkins服务是否在本地系统帐户下运行
  • 开始构建,然后->错误
  • 我做错了什么

    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
    
    好吧,笨蛋

    在jenkins中,我将reqpository url放入项目配置中,就像他们的示例一样

    ssh://git@org:me/project.git

    这是不正确的,应该是

    git@bitbucket.org:me/project.git

    好的,愚蠢的修复

    在jenkins中,我将reqpository url放入项目配置中,就像他们的示例一样

    ssh://git@org:me/project.git

    这是不正确的,应该是

    git@bitbucket.org:me/project.git