我使用tfs 2015和update3。我已经创建了如下的tfs构建定义:
工件类型是'文件共享'。
构建开始时,我收到错误:
2017-01-22T13:05:28.4826393Z shell.js: internal error 2017-01-22T13:05:28.4836396Z
RangeError: Maximum call stack size exceeded 2017-01-22T13:05:28.4836396Z at String.charCodeAt (native) 2017-01-22T13:05:28.4846392Z at Object.dirname (path.js:706:21) 2017-01-22T13:05:28.4846392Z at mkdirSyncRecursive (C:\Program Files\Microsoft Team Foundation Server
14.0\Build\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:7:22) 2017-01-22T13:05:28.4856408Z at mkdirSyncRecursive (C:\Program Files\Microsoft Team Foundation Server
14.0\Build\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3) 2017-01-22T13:05:28.4866398Z at mkdirSyncRecursive (C:\Program Files\Microsoft Team Foundation Server
14.0\Build\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3) 2017-01-22T13:05:28.4866398Z at mkdirSyncRecursive (C:\Program Files\Microsoft Team Foundation Server
14.0\Build\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3) 2017-01-22T13:05:28.4876401Z at mkdirSyncRecursive (C:\Program Files\Microsoft Team Foundation Server
14.0\Build\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3) 2017-01-22T13:05:28.4876401Z at mkdirSyncRecursive (C:\Program Files\Microsoft Team Foundation Server
14.0\Build\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3) 2017-01-22T13:05:28.4886414Z at mkdirSyncRecursive (C:\Program Files\Microsoft Team Foundation Server
14.0\Build\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3) 2017-01-22T13:05:28.4886414Z at mkdirSyncRecursive (C:\Program Files\Microsoft Team Foundation Server
14.0\Build\tasks\PublishBuildArtifacts\1.0.28\node_modules\shelljs\src\mkdir.js:16:3)
如何解决?
答案 0 :(得分:0)
这是一个已知问题:GITHub中的Copy Files Task / Publish Build Artifacts Task copy to invalid UNC OR drive root produces RangeError: Maximum call stack size exceeded Issue。
就像 jessehouwing 一样,您可能需要更新构建代理(TFS版本)。另一种可能性与许可有关。请确保构建代理(作为网络服务运行)具有足够的权限在网络共享上创建文件夹,它正在尝试将工件发布到。
您还可以参考此类似问题:Publish build artifacts step fails, when using Artifact Type : fileshare (TFS 2015)