【问题标题】:TFS Build agent, rename _work folder to a shorter name [duplicate]TFS 构建代理,将 _work 文件夹重命名为更短的名称 [重复]
【发布时间】:2017-11-24 19:34:40
【问题描述】:

我正在使用 TFS2018,在 GetSources 步骤中出现以下错误

2017-11-22T10:22:35.4137749Z TF400889: The following path contains more than the allowed 259 characters: C:\agent\_work\1\s\myverylongfoldertoalongfilenamepath. Specify a shorter path.
2017-11-22T10:22:35.4450272Z ##[error]Exit code 1 returned from process: file name 'tf', arguments 'vc get /version:58632 /recursive /overwrite C:\agent\_work\1\s /loginType:OAuth /login:.,******** /noprompt'.

我想缩短构建代理文件夹名称。是否可以将 _work 文件夹重命名为例如w?

【问题讨论】:

  • 嗨@Mat 我改写了这个问题......

标签: tfs


【解决方案1】:

简而言之,您目前得到的错误是 TFVC 限制,来自

Must not contain more than 259 Unicode characters for a single folder or file name.

来源链接:Version control paths

您可以通过重新配置构建代理来change the Build Agent Working Directory。您可以使用a 而不是agent 并得到c:\a\_work\1\s_workw

否则,您必须在 TFS 源代码控制中手动调整文件/文件夹结构才能绕过此问题。从C:\Agent\_work\1\s\TestCaseProjectC:\Agent\_work\1\s\TestCasePro

【讨论】:

  • 嗨@PatrickLu-MSFT 我能够在代理配置过程中将 _work 文件夹更改为 w
  • @doorman 抱歉没试过,xaml 构建时无法做到。更新我的回复。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2016-01-11
  • 2020-10-21
  • 2020-06-29
  • 2023-04-05
  • 2017-07-13
  • 1970-01-01
相关资源
最近更新 更多