【发布时间】:2018-02-12 14:48:57
【问题描述】:
无法对代理执行签出:'"C:\Program 文件\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass8517307457314531623.bat -c credential.helper= -c credential.helper=C:/TeamCity/buildAgent/temp/buildTmp/credHelper4649196994804332385.bat reset --hard 1df124bae56fa97bbfd0c144a85fa80cacd4fedb' 命令失败。
请注意,我已尝试在文件末尾的 C:\TeamCity\buildAgent\conf\buildAgent.properties 文件中添加 teamcity.git.use.native.ssh=true。还尝试将其添加到“配置参数”中,但无济于事。任何指导将不胜感激。
更新: 构建日志
Build 'BUILD_NAME :: Build' #10 于 2017-09-06 04:17:09 开始 'AGENT_NAME' by 'Git' 于 2017-09-06 04:17:24 完成,状态为 FAILURE “应用补丁时出错”VCS 修订: 'https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy' (Git): 6d6ef41657179c8e25b128c479d570b0320e368f(分支'refs/heads/deploy') 团队城市网址 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 (构建 46533)[04:17:03]:完成构建设置 [04:17:04]: 构建从队列中删除以准备开始 [04:17:04]:收集 1 个 VCS 根 (4s) [04:17:04] 中的更改:
[收集 1 个 VCS 根中的更改] VCS 根详细信息 [04:17:04] :
[VCS 根详细信息] “https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy” {实例 id=27,父内部 id=9,父 id=BUILD_NAME_HttpsUSERNAMEBitbucketOrgPROJECTGitRefs,描述: "https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy"} [04:17:08]i:[收集 1 个 VCS 根中的更改] 检测 VCS 根 'https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy'(使用 在“构建”中)[04:17:08]i:[收集 1 个 VCS 根目录中的更改] 将 收集更改 'https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy' 从修订版 6d6ef41657179c8e25b128c479d570b0320e368f 开始 [04:17:08]:[收集 1 个 VCS 根中的更改] 计算修订版 'https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy' [04:17:08]:[计算修订版 'https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy'] 上 限制修订:6d6ef41657179c8e25b128c479d570b0320e368f [04:17:08]i:[计算修订 'https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy'] MaxModId = 6006 [04:17:08]:[计算修订版 'https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy'] 最新 提交附加到构建配置: 6d6ef41657179c8e25b128c479d570b0320e368f [04:17:08]:[计算 修订为 'https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy'] 计算修订:6d6ef41657179c8e25b128c479d570b0320e368f [04:17:08] :在代理 AGENT_NAME [04:17:09]i 上开始构建:代理时间 区域:UTC [04:17:10]i:代理在 JRE 下运行:1.8.0_121-b13 [04:17:10]:清除临时目录: C:\TeamCity\buildAgent\temp\buildTmp [04:17:10]:发布内部 工件 [04:17:10] : [发布内部工件] 发布 1 使用 [WebPublisher] [04:17:10] 的文件:[发布内部 artifacts] 使用 [ArtifactsCachePublisher] 发布 1 个文件 [04:17:10]:使用代理文件中的 vcs 信息: 40fe536e1ba26e7d.xml [04:17:10]:结帐目录: C:\TeamCity\buildAgent\work\40fe536e1ba26e7d [04:17:10]E: 更新 来源:自动结帐(在代理上)(13 秒)[04:17:10]:[更新 来源]将使用代理端结帐[04:17:10]:[更新来源] VCS 根目录:https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy (13 秒)[04:17:10]:[VCS 根: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] 修订:6d6ef41657179c8e25b128c479d570b0320e368f [04:17:10]:[VCS 根:https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] Git 版本:2.13.0.0 [04:17:10]:[VCS 根目录: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\system\git\git-775EA635.git]:“C:\Program Files\Git\bin\git.exe" show-ref [04:17:10] : [VCS 根目录: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\system\git\git-775EA635.git]:“C:\Program 文件\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass6391275250942021006.bat -c credential.helper=ls-remote origin [04:17:11] : [VCS Root: https://USERNAME@bitbucket.org/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 根: https://USERNAME@bitbucket.org/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 根:https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\system\git\git-775EA635.git]:“C:\Program 文件\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 (2s) [04:17:13] : [[C:\TeamCity\buildAgent\system\git\git-775EA635 .git]: "C:\程序 文件\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] 远程:计数对象:1,完成。 [04:17:13]:
[[C:\TeamCity\buildAgent\system\git\git-775EA635.git]: "C:\Program 文件\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] 远程:总计 1(增量 0),重用 0(增量 0)[04:17:13]:
[[C:\TeamCity\buildAgent\system\git\git-775EA635.git]: "C:\Program 文件\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] 来自https://bitbucket.org/PROJECT [04:17:13] :
[[C:\TeamCity\buildAgent\system\git\git-775EA635.git]: "C:\Program 文件\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] * [新分支] deploy -> deploy [04:17:13] : [[C:\TeamCity\buildAgent\系统\git\git-775EA635.git]: "C:\Program 文件\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] * [新分支] deploy -> origin/deploy [04:17:13] : [VCS Root: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\system\git\git-775EA635.git]:“C:\Program Files\Git\bin\git.exe" 日志 -n1 --pretty=format:%H%x20%s 6d6ef41657179c8e25b128c479d570b0320e368f -- [04:17:13] : [VCS 根目录: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\work\40fe536e1ba26e7d]:“C:\Program Files\Git\bin\git.exe" 配置 remote.origin.url [04:17:13] : [VCS 根:https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\system\git\git-775EA635.git]:“C:\Program Files\Git\bin\git.exe" pack-refs --all [04:17:13] : [VCS 根目录: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\work\40fe536e1ba26e7d]:“C:\Program Files\Git\bin\git.exe" config core.sparseCheckout true [04:17:13] :
[VCS 根: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\work\40fe536e1ba26e7d]:“C:\Program Files\Git\bin\git.exe" show-ref [04:17:13] : [VCS 根目录: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\work\40fe536e1ba26e7d]:“C:\Program 文件\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass8692935477830272422.bat -c credential.helper=ls-remote origin [04:17:14] : [VCS Root: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\work\40fe536e1ba26e7d]:“C:\Program Files\Git\bin\git.exe" show-ref refs/remotes/origin/deploy [04:17:14] : [VCS 根: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\work\40fe536e1ba26e7d]:“C:\Program Files\Git\bin\git.exe" 日志 -n1 --pretty=format:%H%x20%s 6d6ef41657179c8e25b128c479d570b0320e368f -- [04:17:14] : [VCS 根目录: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\work\40fe536e1ba26e7d]:“C:\Program Files\Git\bin\git.exe" 分支 [04:17:14] : [VCS 根目录: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\work\40fe536e1ba26e7d]:“C:\Program Files\Git\bin\git.exe" update-ref refs/heads/deploy 6d6ef41657179c8e25b128c479d570b0320e368f [04:17:14]:[VCS 根目录: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy] [C:\TeamCity\buildAgent\work\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 结帐 -q -f 部署 [04:17:24] :[VCS 根: https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy]致命: 无法创建目录 '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 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' 命令失败。退出代码:128 标准错误:致命: 无法创建目录 '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]:发布内部工件 [04:17:24]:[发布内部工件]使用发布 1 个文件 [网络出版商] [04:17:24]:[发布内部工件] 使用 [ArtifactsCachePublisher] 发布 1 个文件 [04:17:24]:构建 未能启动。不会为此版本发布工件 [04:17:25]:构建完成
【问题讨论】:
-
你能提供更多细节吗?什么是 TeamCity 版本?您的 VCS 根是如何配置的?你能显示整个日志吗?
-
嗨,鲍里斯,添加了构建日志。 TeamCity 版本为“TeamCity Professional 2017.1”
标签: teamcity