2015-12-22 33 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的」已被刪除。