无法在座席

时间:2017-09-04 11:11:45

标签: teamcity

  

无法在座席上执行结帐:'"" 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'由Git'完成2017-09-06 04:17:24状态失败   '应用补丁时出错' VCS修订版:   ' https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy' (GIT):   6d6ef41657179c8e25b128c479d570b0320e368f(分支' refs / heads / deploy')   TeamCity URL   http://SERVER:PORT/viewLog.html?buildId=258&buildTypeId=BUILD_NAME_Build   TeamCity服务器版本是2017.1(版本46533),时区:UTC

     

[04:17:03] E:bt9(20s)[04:17:03] i:TeamCity服务器版本是2017.1   (build 46533)[04:17:03]:Finalize build settings [04:17:04]:The   将从队列中删除构建以准备开始   [04:17:04]:收集1个VCS根(4s)[04:17:04]的变化:
  [收集1 VCS root中的更改] VCS Root详细信息[04:17:04]:
  [VCS Root详细信息]   " https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy"   {instance id = 27,parent internal id = 9,parent   id = BUILD_NAME_HttpsUSERNAMEBitbucketOrgPROJECTGitRefs,说明:   " https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy"}   [04:17:08] i:[收集1个VCS根目录中的更改]检测到的更改   VCS root   ' https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy' (用过的   in' Build')[04:17:08] i:[收集1个VCS root中的更改]将   收集变化   ' 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]我:[计算修订版   ' 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:代理时间   zone:UTC [04:17:10] i:代理程序在JRE下运行:1.8.0_121-b13   [04:17:10]:清除临时目录:   C:\ TeamCity \ buildAgent \ temp \ buildTmp [04:17:10]:内部发布   artifacts [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:正在更新   来源:自动结账(代理人)(13s)[04:17:10]:[更新   来源]将使用代理方签出[04:17:10]:[更新来源]   VCS Root:https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy   (13s)[04:17:10]:[VCS Root:   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 Root:   https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy]   [C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:" C:\ Program   文件\的Git \ BIN \ git.exe" show-ref [04:17:10]:[VCS Root:   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   文件\的Git \ BIN \ git.exe" show-ref refs / remotes / origin / deploy [04:17:11]   :[VCS Root:   https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy]   [C:\ TeamCity \ buildAgent \ system \ git \ git-775EA635.git]:" C:\ Program   文件\的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:\ 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] remote:计数对象: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] remote:Total 1(delta 0),reused 0(delta 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] * [new branch] deploy - > deploy [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] * [new branch] 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   文件\的Git \ BIN \ git.exe" log -n1 --pretty = format:%H%x20%s   6d6ef41657179c8e25b128c479d570b0320e368f - [04:17:13]:[VCS Root:   https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy]   [C:\ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d]:" C:\ Program   文件\的Git \ BIN \ git.exe" config 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   文件\的Git \ BIN \ git.exe" pack-refs --all [04:17:13]:[VCS Root:   https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy]   [C:\ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d]:" C:\ Program   文件\的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   文件\的Git \ BIN \ git.exe" show-ref [04:17:13]:[VCS Root:   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   文件\的Git \ BIN \ git.exe" show-ref refs / remotes / origin / deploy [04:17:14]   :[VCS Root:   https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy]   [C:\ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d]:" C:\ Program   文件\的Git \ BIN \ git.exe" log -n1 --pretty = format:%H%x20%s   6d6ef41657179c8e25b128c479d570b0320e368f - [04:17:14]:[VCS Root:   https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy]   [C:\ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d]:" C:\ Program   文件\的Git \ BIN \ git.exe"分支[04:17:14]:[VCS Root:   https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy]   [C:\ TeamCity \ buildAgent \ work \ 40fe536e1ba26e7d]:" C:\ Program   文件\的Git \ BIN \ git.exe" update-ref refs / heads / deploy   6d6ef41657179c8e25b128c479d570b0320e368f [04:17:14]:[VCS Root:   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   checkout -q -f deploy [04:17:24]:[VCS Root:   https://USERNAME@bitbucket.org/PROJECT.git#refs/heads/deploy]致命:   无法创建目录   ' node_modules / ep_etherpad-精简版/ node_modules / NPM / node_modules / NPM-注册表的客户机/ node_modules / npmlog / node_modules /表/ node_modules /串宽度/ node_modules / IS-全角码点/ node_modules /号 - 是男&#39 ;:   文件名太长了   [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 stderr:致命:   无法创建目录   ' node_modules / ep_etherpad-精简版/ node_modules / NPM / node_modules / NPM-注册表的客户机/ node_modules / npmlog / node_modules /表/ node_modules /串宽度/ node_modules / IS-全角码点/ node_modules /号 - 是男&#39 ;:   文件名太长了   [04:17:24]:发布内部工件   [04:17:24]:[发布内部工件]使用发布1文件   [WebPublisher]   [04:17:24]:[发布内部工件]   使用[ArtifactsCachePublisher]发布1个文件   [04:17:24]:建立   未能启动。此构建版本不会发布工件   [04:17:25]:构建完成

2 个答案:

答案 0 :(得分: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

答案 1 :(得分:0)

Filename too long确实是问题,但作为一个以太网项目,我无法改变插件名称或路径,所以我  将我的workDir更改为C:\TeamCity\buildAgent\conf\buildAgent.properties workDir=C\:\\w,即@keyframes changecolor { to {background:red;} } ,这对我有用。