2017-03-06 62 views
7

我已經在Jenkins中爲bitbucket設置了一些憑據,並且雙重檢查了憑證設置(例如,手動登錄),但是當我在Jenkins中嘗試它時,它只是永遠旋轉並給出此輸出:詹金斯 - 使用GIT_ASKPASS設置憑據

> git config remote.origin.url <bitbucket url> # timeout=10 
Fetching upstream changes from <bitbucket url> 
> git --version # timeout=10 
using GIT_ASKPASS to set credentials <bitbucket account email> Bitbucket 
> git fetch --tags --progress <bitbucket url> +refs/heads/*:refs/remotes/origin/* 
> git fetch --tags --progress <bitbucket url> +refs/heads/*:refs/remotes/origin/* 

請注意,URL在公開時很好。但是當設置爲私有時,它只會失敗,沒有輸出。

反正有沒有更詳細的調試呢?

回答

12

我有一個類似的問題,與Jenkins在Windows服務器上。我使用憑證管理器安裝了git,每當它試圖檢出私有存儲庫時,它都會等待我在服務器中手動輸入憑據。禁用git憑證管理器爲我解決了它。

我已經有了一個在git插件中輸入憑據的選項,所以不需要單獨的憑證管理器。

+13

沒錯,這裏是如何做到這一點的設置混帳路徑: '混帳配置--system --unset credential.helper 'More info:http://stackoverflow.com/questions/37182847/how-to-disable-git-credential-manager-for-windows –

+0

@benButzer你真棒! –

+0

圖例@BenButzer !! – Rocklan

0

我在OSX上遇到了這個問題。我的問題是Jenkins使用了錯誤的Git可執行文件(我通過禁用結帳步驟並在其他任何地方添加了0​​來驗證這一點)。

我在終端中運行which git,並將路徑複製粘貼到Manage Jenkins - > Global Tool Configuration - > Git - > Git可執行文件的路徑中。它在那之後工作。

0

混帳配置--system --unset credential.helper

無法鎖定配置文件/ etc/gitconfig:權限被拒絕

須藤混帳配置--system --unset憑證。在

創建幫手

沒有錯誤,但沒有文件

通過檢查「這混帳」

沒有工作,要麼