OS:的Ubuntu 16.04詹金斯錯誤128/Git的錯誤403:詹金斯無法連接到我的倉庫到位桶
管理程序: VirtualBox的
網絡配置: NAT網絡端口轉發到通過主機IP訪問虛擬機。我也可以從另一臺虛擬機ping一臺虛擬機。
我嘗試將虛擬機上託管的Jenkins應用程序連接到我的BitBucket服務器上。我跟着網上的教程,但是當我進入我的git倉庫的地址,我得到這樣的:
Failed to connect to repository : Command "usr/bin/git ls-remote -h http://[email protected]:8005/scm/tes/repository-test.git HEAD" returned status code 128: stdout: stderr: fatal: unable to access 'http://[email protected]:8005/scm/tes/repository-test.git/': The requested URL returned error: 403
所以,可以肯定我試圖在終端上exectute命令和它似乎工作。我也可以推,克隆的終端,拉等。
On this image you can see that it's true
你有一個解釋?
編輯:
我嘗試一些其他的東西像使用或不使用sudo來查看是否存在權限問題從走過來,它似乎並非如此。 But I see that there is no result when we use the "HEAD" argument.
你認爲因爲「HEAD」沒有給出結果,jenkins中的git將它解釋爲沒有答案,並返回該死的錯誤403?
編輯2:
我發現,網站:HTTP:// jenkins-ci.361315.n4.nabble.com/Jenkins-GIT-ls-remote-error-td4646903.html 這個人有同樣的問題,但以不同的方式,我會嘗試分配更多的RAM,看看它是否有訣竅。
您是否在BitBucket中使用私有存儲庫? –
不,我檢查了盒子,使資料庫「公衆」的設置 – TheAdvanced
檢查這個http://stackoverflow.com/questions/21715345/jenkins-returned-status-code-128 –