2016-04-21 116 views
0

我的團隊目前正在使用Jenkins主站和四個不同的從站; linux,兩個mac和windows。
對於在這些奴隸上使用源代碼管理(gitlab)的git克隆進程,我們在詹金斯憑證上使用ssh user defined with passphraseJenkins在Windows Slave上使用密碼的SSH用戶

所有奴隸都能夠使用上克隆庫的過程,但Windows Slave,它給了以下錯誤該用戶:

stdout:
stderr: Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,password).
fatal: Could not read from remote repository.

+0

您是否試圖直接在Windows Slave上使用git客戶端來克隆項目?這可能會給你一個線索。 – RZet

+0

這不能被嘗試,因爲我給詹金斯ssh用戶的私鑰和密碼,如果我直接嘗試奴隸它會要求[email protected]密碼這是沒有意義的 –

+0

這篇文章應該解釋你的問題,特別是第一條評論:https://issues.jenkins-ci.org/browse/JENKINS-20637 – RZet

回答

0

以下爲我們的工作,這可能是可能的答案,但幾經嘗試,我已經設法通過使用從Windows Slave生成的密鑰與SSH連接所有奴隸,謝謝。