2014-02-25 55 views
1

我使用詹金斯從我的git遠程存儲庫建立。
我想在repo url字段中提供什麼,因爲我使用遠程本地系統進行克隆和構建。
上次我在場上給克隆命令,我得到了錯誤:致命︰無法讀取從遠程repository.error使用詹金斯

stderr: fatal: '//se12/adempiere370new' does not appear to be a git repository 
fatal: Could not read from remote repository. 

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

什麼是我真正想在URL字段給?

+0

不確定「遠程本地系統」是什麼意思?你能解釋一下你的意思嗎?通常它和你在本地倉庫中的遠程倉庫一樣git remote -v',即\t [email protected]:user/repo-name.git – crea1

+0

我的意思是本地倉庫即服務器是網絡中的本地系統。 –

回答

0

您需要確保運行Jenkins作業的用戶有權訪問Jenkins監控的代表遠程倉庫的遠程文件夾。

如果您使用的是Windows(如your previous question傾向於表明),路徑應該是:

\\se12\adempiere370new 

因此,確保用戶在運行詹金斯可以做dir \\se12\adempiere370new

OP Tony Davismentions//se12/adempiere370new也工作,但該命令必須是git clone //se12/adempiere370new,前面沒有任何'$'。

+0

本地系統和jenkins可以訪問指定的目錄。但是我怎麼能檢查詹金斯是否可以訪問它,如果沒有,我怎麼能提供訪問權限? –

+0

@ user3093983我提到的目錄足以檢查詹金斯是否可以訪問它。試着在你的字段中設置'\\ se12 \ adempiere370new'而不是'// se12/adempiere370new' – VonC

+0

仍然會發生同樣的錯誤。唯一的問題是回購網址。我無法解決它。 –