2017-09-04 27 views
1

無法上劑進行結帳執行結帳:-c core.askpass = C: 「\程序 文件\ GIT中\ BIN \ git.exe C」:」 \ TeamCity的\ buildAgent \ temp中\ buildTmp \ pass8517307457314531623.bat -c credential.helper = -c credential.helper = C:/TeamCity/buildAgent/temp/buildTmp/credHelper4649196994804332385.bat reset --hard 1df124bae56fa97bbfd0c144a85fa80cacd4fedb'command failed。無法上劑

請注意,我已經嘗試添加使用C teamcity.git.use.native.ssh=true:在文件的結尾\ TeamCity的\ buildAgent \的conf \ buildAgent.properties文件。還嘗試將其添加到「配置參數」中,但無濟於事。任何指導將不勝感激。

UPDATE: 生成日誌

建設 'BUILD_NAME ::建設' #10開始2017年9月6日4時17分09秒上 'AGENT_NAME' 由 '混帳' 完成2017年9月6日 'https://[email protected]/PROJECT.git#refs/heads/deploy'(GIT):4點17分24秒,狀態故障 VCS修訂版 '而應用補丁錯誤' 6d6ef41657179c8e25b128c479d570b0320e368f(分支 '裁判/頭/部署') TeamCity的URL http://SERVER:PORT/viewLog.html?buildId=258&buildTypeId=BUILD_NAME_Build 的TeamCity服務器版本爲2017.1( build 46533),時區:UTC

[04:17:03] E:bt9(20s)[04:17:03] i:TeamCity服務器版本是2017.1 (build 46533)[04:17:03]:完成編譯設置[04: 17:04]:從隊列中刪除 構建以準備開始 [04:17:04]:收集1個VCS根(4s)[04:17:04]中的更改:
[收集更改在1個VCS] VCS根細節[4時17分04秒]:
[VCS根細節] 「https://[email protected]/PROJECT.git#refs/heads/deploy」 {實例id = 27,父內部ID = 9,父 ID = BUILD_NAME_HttpsUSERNAMEBitbucketOrgPROJECTGitRefs介紹: 「 https://[email protected]/PROJECT.git#refs/heads/deploy「} [04:17:08] i:[收集1 VCS根目錄中的更改]檢測 VCS根目錄 'https://[email protected]/PROJECT.git#refs/heads/deploy'中的更改(在'Build'中使用 )[04:17:08] i:[收集1中的更改VCS根]將 收集從版本起始6d6ef41657179c8e25b128c479d570b0320e368f 爲 'https://[email protected]/PROJECT.git#refs/heads/deploy' 改變[4時17分08秒]:[1個VCS根收集的變化]計算修正爲 'https://[email protected]/PROJECT.git#refs/heads/deploy' [4時17分08秒]: [計算修訂版 'https://[email protected]/PROJECT.git#refs/heads/deploy']上限 限制修訂:6d6ef41657179c8e25b128c479d570b0320e368f [04:17:08] i:[計算修訂版 'https://[email protected]/PROJECT.git#refs/heads/deploy '] MaxModId = 6006 [4時17分08秒]:[計算修正爲 ' https://[email protected]/PROJECT.git#refs/heads/deploy']最新 提交附着到建築結構: 6d6ef41657179c8e25b128c479d570b0320e368f [4時17分08秒]:[計算 修訂版 'https://[email protected]/PROJECT.git#refs/heads/deploy'] 已計算修訂:6d6ef41657179c8e25b128c479d570b0320e368f [4時17分08秒] :在代理啓動構建AGENT_NAME [4點17分09秒]主:代理時 區:UTC [4點17分10秒]主:代理正在JRE:1.8下運行。[04:17:10]:[發佈內部] [發佈內部 工件]發佈1個文件使用[ArtifactsCachePublisher] [4時17分10秒]:工件]使用[WebPublisher] [4時17分10秒]發佈1個 文件 40fe536e1ba26e7d:從代理文件使用VCS信息。 xml [04:17:10]:結帳目錄: C:\ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d [04:17:10] E:更新 來源:自動結帳(在座席上)(13s)[04:17: 10]:[更新 來源]將使用代理端結帳[04:17:10]:[更新來源] VCS Root:https://[email protected]/PROJECT.git#refs/heads/deploy (13S)[4點17分10秒]:[VCS根: https://[email protected]/PROJECT.git#refs/heads/deploy] 修訂:6d6ef41657179c8e25b128c479d570b0320e368f [4點17分10秒]:[VCS 根:https://[email protected]/PROJECT.git#refs/heads/deploy] GIT中版本:2.13.0.0 [4點17分10秒]:[VCS Root: https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「C:\ Program Files \ Git \ bin \ git.exe」show-ref [04: [C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「VCS Root: https://[email protected]/PROJECT.git#refs/heads/deploy] Files \ Git \ core.askpass = C:\ TeamCity \ buildAgent \ temp \ buildTmp \ pass6391275250942021006.bat -c credential.helper = ls-remote origin [04:17:11]:[VCS Root:https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「C:\ Program Files \ Git \ bin \ git.exe「show-ref refs/remotes/origin/deploy [04:17:11] :[VCS Root: https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity \ buildAgent \ system \ git \ git- 775EA635.git]:「C:\ Program Files \ Git \ bin \ git.exe」show-ref refs/heads/deploy [04:17:11]:[VCS Root:https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「Files \ Git \ bin \ git.exe」-c core.askpass = C:\ TeamCity \ buildAgent \ temp \ buildTmp \ pass4132618148202213556.bat -c credential.helper = fet ch - 進度原點+​​ refs/heads/deploy:refs/heads/deploy(2s)[04:17:13]:[[C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「C :\ Program Files \ Git \ bin \ git.exe「-c core.askpass = C:\ TeamCity \ buildAgent \ temp \ buildTmp \ pass4132618148202213556.bat -c credential.helper = fetch --progress origin + refs/head/deploy:refs/heads/deploy] remote:計數對象:1,完成。 [04:17:13]:
[[C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「C:\ Program Files \ Git \ bin \ git.exe」-c core .askpass = C:\ TeamCity \ buildAgent \ temp \ buildTmp \ pass4132618148202213556.bat -c credential.helper = fetch --progress origin + refs/heads/deploy:refs/heads/deploy] remote:Total 1(delta 0) ,重用0(delta 0)[04:17:13]:
[[C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「C:\ Program Files \ Git \ bin \ git .exe「-c core.askpass = C:\ TeamCity \ buildAgent \ temp \ buildTmp \ pass4132618148202213556.bat -c credential.helper = fetch --progress origin + refs/heads/deploy:refs/heads/deploy] From https://bitbucket.org/PROJECT [04:17:13]:
[[C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「C:\ Program Files \ Git \ bin \ git.exe」-c core.askpass = C:\ TeamCity \ buildAgent \ temp \ buildTmp \ pass4132618148202213556.bat -c credential.helper = fetch --progress origin + refs/heads/deploy:refs/heads/deploy] * [new branch] deploy - > deploy [04:17:13]: [[C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「C:\ Program Files \ Git \ bin \ git。exe「-c core.askpass = C:\ TeamCity \ buildAgent \ temp \ buildTmp \ pass4132618148202213556.bat -c credential.helper = fetch --progress origin + refs/heads/deploy:refs/heads/deploy] * [新的分支]部署 - >起源/部署[04:17:13]:[VCS根目錄:https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:「C:\ Program Files \ GIT中\ BIN \ git.exe」日誌-n1 --pretty =格式:%H%×20%S 6d6ef41657179c8e25b128c479d570b0320e368f - [四時17分13秒]:[VCS根: https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity的\ buildAgent \工作\ 40fe536e1ba26e7d]:「C:\ Program Files \ Git \ bin \ git.exe」config remote.origin.url [04:17:13]:[VCS Root:https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity \ buildAgent \ SYS [VCS Root: https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ Program Files \ Git \ bin \ git.exe] [C:\ Program Files \ Git \ bin \ git.exe] [C:\ Program Files \ Git \ git-775EA635.git] :\ TeamCity的\ buildAgent \工作\ 40fe536e1ba26e7d]: 「C:\ PROGRAM 文件\的Git \ BIN \ git.exe」 配置core.sparseCheckout真[四時17分十三秒]:
[VCS根: https://[email protected]/PROJECT.git#refs/heads/deploy] [ C:\ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d]:「C:\ Program Files \ Git \ bin \ git.exe」show-ref [04:17:13]:[VCS Root: https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d]:「C:\ Program Files \ Git \ bin \ git.exe」-c core.askpass = C:\ TeamCity \ buildAgent \ temp \ buildTmp \ pass8692935477830272422.bat -c credential.helper = LS-遠程來源[4時17分十四秒]:[VCS根:https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity的\ buildAgent \工作\ 40fe536e1ba26e7d]:「C:\程序 文件\ Git \ bin \ git.exe「show-ref refs/remotes/origin/deploy [04:17:14] :[VCS Root: https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d]:」C: \程序 文件\ GIT中\ BIN \ git.exe」日誌-n1 --pretty =格式:%H%×20%S 6d6ef41657179c8e25b128c479d570b0320e368f - [4點十七分14秒]:[VCS根: https://[email protected]/PROJECT.git#refs/heads/deploy] [C: \ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d]:「C:\ Program Files \ Git \ bin \ git.exe」分支[04:17:14]:[VCS Root: https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity的\ buildAgent \工作\ 40fe536e1ba26e7d]: 「C:\ PROGRAM 文件\的Git \ BIN \ git.exe」 更新裁判裁判/頭/部署 6d6ef41657179c8e25b128c479d570b0320e368f [四時17分14秒] [VCS根: https://[email protected]/PROJECT.git#refs/heads/deploy] [C:\ TeamCity的\ buildAgent \工作\ 40fe536e1ba26e7d]: 「C:\ PROGRAM 文件\的Git \ BIN \ git.exe」 -c core.askpass = C:\ TeamCity的\ buildAgent \ temp \ buildTmp \ pass3509070227318612601.bat -c credential.helper = -c credential.helper = C:/TeamCity/buildAgent/temp/buildTmp/credHelper7927651800956395094.bat checkout -q -f deploy [04:17:24]:[ VCS根目錄: https://[email protected]/PROJECT.git#refs/heads/deploy]致命: 無法在01創建目錄'node_modules/ep_etherpad-lite/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is- nan': 文件名太長 [04:17:24] E:[更新源代碼]無法在代理上執行 簽出:'「C:\ Program Files \ Git \ bin \ git.exe」-c 核心。 askpass = C:\ TeamCity \ buildAgent \ temp \ buildTmp \ pass3509070227318612601.bat -c credential.helper = -c credential.helper = C:/TeamCity/buildAgent/temp/buildTmp/credHelper7927651800956395094.bat checkout -q -f deploy '命令失敗。退出代碼:128 stderr:fatal: 無法創建目錄 'node_modules/ep_etherpad-lite/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is -fullwidth-code-point/node_modules/number-is-nan': Filename too long [04:17:24]:Publishing internal artifacts [04:17:24]:[Publishing internal artifacts] Publishing 1 file using [WebPublisher] [04:17:24]:[發佈內部文物] 使用[ArtifactsCachePublisher]發佈1個文件 [04:17:24]:內部版本 未能啓動。文物不會被公開爲此構建 [4點17分25秒]:建立完成

+0

你能提供更多細節嗎?什麼是TeamCity版本?您的VCS根目錄是如何配置的?你能顯示整個日誌嗎? –

+0

嗨鮑里斯,補充構建日誌。 TeamCity版本是「TeamCity Professional 2017.1」 – Blue

回答

0

Filename too long確實是問題,但作爲一個EtherPad的項目,我是不是在位置來改變插件名或路徑,所以我 改變我workDir到在C:\TeamCity\buildAgent\conf\buildAgent.propertiesworkDir=C\:\\w可能的最小,它爲我工作。

0

從日誌中我看到的問題是與創建太長路徑。在Windows上,最大路徑長度爲260個字符。我建議減少目錄的嵌套在項目結構:

node_modules/ep_etherpad-lite/node_modules/npm/node_modules/npm-registry-client/node_modules/npmlog/node_modules/gauge/node_modules/string-width/node_modules/is-fullwidth-code-point/node_modules/number-is-nan