Jenkins

Jenkins - 原始碼管理,憑證錯誤

  • September 20, 2016

我有一個關於 Bitbucket 的儲存庫,我正在嘗試連接到我的 Jenkins 實例。此處不採用 SSH 密鑰方法,而是採用普通的 id/密碼,因為通信將在 SSL 中進行。

(1) 我仔細檢查了 BitBucket 和 Jenkins 條目上的 ID/密碼。我嘗試了全域和系統的範圍。

(2) 我在 Bitbucket 上添加了一個指向我的 Jenkins 實例的鉤子。

(3) 在 Jenkins 上安裝了正確的 bitbucket 外掛。

但我不斷得到

    "Failed to connect to repository : Error performing command: git ls-remote -h https://bitbucket.org/id/demo HEAD" 
and 
"Failed to connect to repository : Could not init /tmp/hudson4950610074146191608tmp" 

我搜尋了這兩個錯誤的含義,但我無法確定這是否是憑據問題。

我不知道如何進行。

謝謝你。

檢查是否在Jenkins伺服器上安裝了git,並檢查是否在Jenkins配置中設置了git可執行路徑

經過幾天的努力,結果發現 Jenkins 使用的私鑰權限設置不正確。使用者名和密鑰必須匹配。

引用自:https://serverfault.com/questions/602195