2015-12-22 34 views
0

我创建了一个私有密钥,并添加公钥我的钥匙就到位桶就像在这个tutorial詹金斯 - 从到位桶获取代码与SSH

我想私钥证书下的菜单中添加詹金斯解释但它只是继续说:

Failed to connect to repository : Command "C:\Program Files\Git\cmd\git.exe -c core.askpass=true ls-remote -h [email protected]:bla/blabla.git HEAD" returned status code 128: 
stdout: 
stderr: Permission denied (publickey). 
fatal: Could not read from remote repository. 

Please make sure you have the correct access rights 
and the repository exists. 

我在做什么错了詹金斯?

谢谢。

回答

0

我和詹金斯有类似的问题。然后,在我的工作配置的帮助,我看准了这

对于远程URL的超级项目,在URL的结尾决定裸或不裸仓库是在假设:

  • 如果远程URL以/.git结尾,则假定为非裸存储库。
  • 如果远程URL不以/.git结尾,则假定为裸存储库。

现在,我不知道为什么文档/.git但这使我试试我的回购网址没有git的后缀,因为在一个到位桶回购是光秃秃的。

所以你的情况我会尝试回购URL设置为:

[email protected]:bla/blabla 

注意“git的”已被删除。