1
我建立了一個用於存儲我們的中央git回購站的bonobo服務器。該服務器只能通過http訪問,而不能通過ssh訪問。無法使用bonobo與teamcity
在TeamCity的我將我的VCS根:
- 類型:混帳
- 提取網址:https://myserver/myrepo.git
- 默認分支:主
- 驗證方法:密碼
- 用戶名:我的用戶名我的密碼
- 路徑t o git「C:\ Program Files \ Git \ bin \ git.exe」
如果我點擊「測試連接」,我就會成功。
在我的構建配置我選擇我的VCS與結賬模式「自動代理」,我必須使用這個,所以我可以推動到天藍色的Web應用程序部署。
我在teamcity代理服務器上設置了「git config --global credential.helper cache」,以便存儲憑據。
當我跑我的構建配置,構建被sutck這樣
[12:06:11]Checking for changes
[12:06:11]Publishing internal artifacts
[12:06:11]Clearing temporary directory: D:\TeamCity\buildAgent2\temp\buildTmp
[12:06:11]Checkout directory: D:\TeamCity\buildAgent2\work\2eb5ccde57e744c6
[12:06:11]Updating sources: agent side checkout (running for 9s)
[12:06:11]Using vcs information from server. Reason: no revision information for buildtype SecureImmo and checkout directory D:\TeamCity\buildAgent2\work\2eb5ccde57e744c6 on agent
[12:06:11]Will perform clean checkout. Reason: Checkout directory was cleaned up with errors
[12:06:11]Cleaning D:\TeamCity\buildAgent2\work\2eb5ccde57e744c6
[12:06:11]Failed to delete empty directory: D:\TeamCity\buildAgent2\work\2eb5ccde57e744c6
[12:06:11]VCS Root: Bonobo (running for 9s)
[12:06:11]revision: e76753d88051cb2d3372714d4295c11513c208b8
[12:06:11]Cleaning D:\TeamCity\buildAgent2\work\2eb5ccde57e744c6
[12:06:11]Failed to delete empty directory: D:\TeamCity\buildAgent2\work\2eb5ccde57e744c6
[12:06:11]The .git directory is missing in 'D:\TeamCity\buildAgent2\work\2eb5ccde57e744c6'. Running 'git init'...
[12:06:12]Commit 'e76753d88051cb2d3372714d4295c11513c208b8' is not found in repository. Running 'git fetch'...
如果我不全自動設置代理那麼我不能把我的項目蔚藍的Web應用程序的飯桶。
你爲什麼說服務器的「HTTP與SSL」時,纔可訪問,然後有一個https://開頭的網址在您的VCS根配置? –
我的意思是「ssh」,我的不好。 –