2012-09-27 278 views
7

我試圖庫配置:使用Git插件 https://github.com/javpaw/game-of-life配置git倉庫

到詹金斯一份工作,但是當我把倉庫的地址: [email protected]:javpaw /game-of-life.git

源代碼管理 - >的git - >庫的URL,我得到這個錯誤:

Failed to connect to repository : Command "/usr/bin/git ls-remote -h [email protected]:javpaw/game-of-life.git HEAD" returned status code 128: stdout: stderr: No protocol specified No protocol specified

(ssh-askpass:18881): Gtk-WARNING **: cannot open display: :0.0 Host key verification failed. fatal: The remote end hung up unexpectedly

我在github上這裏找到這樣一個問題:Why Git fail to connect to local repository with Jenkins (bad config file)?

但是沒有用,因爲我使用的是Ubuntu 12.04

我該如何解決這個問題?

謝謝。

回答

9

嘗試使用一個完整的URL,以https而不是SSH:

https://github.com/javpaw/game-of-life 

您也可以嘗試只讀地址:

git://github.com/javpaw/game-of-life.git 

但在這兩種情況下,重要的是,您指定協議(https://git://

+0

謝謝;您的聲譽先於您=) – javier