TFS 构建:磁盘 space 错误,即使有足够 space

TFS Build: Disk space error even though there is enough space

我们有一个构建 (TFS 2017 Update 1) 在 Copy Publish Artifacts 步骤失败并出现以下错误:

2017-05-23T14:31:37.9464650Z ##[error]System.IO.IOException: There is not enough space on the disk.
2017-05-23T14:31:37.9464650Z 
2017-05-23T14:31:37.9474630Z    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
2017-05-23T14:31:37.9474630Z    at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite, Boolean checkHost)
2017-05-23T14:31:37.9474630Z    at System.IO.FileInfo.CopyTo(String destFileName, Boolean overwrite)
2017-05-23T14:31:37.9474630Z    at Microsoft.PowerShell.Commands.FileSystemProvider.CopyFileInfoItem(FileInfo file, String destinationPath, Boolean force)
2017-05-23T14:31:37.9474630Z    at Microsoft.PowerShell.Commands.FileSystemProvider.CopyDirectoryInfoItem(DirectoryInfo directory, String destination, Boolean recurse, Boolean force)

我可以证明这不是真正的磁盘 space 问题,因为 运行 相同解决方案(但不同分支)的构建运行得很好。这似乎是由于在解决方案中添加了一个新控件,导致拖放文件夹中出现了一个子文件夹。

是否可以让 Copy Publish Artifacts 步骤正确复制子文件夹内容?或者我是否需要找到一种方法将这些文件放在非子文件夹中?

碰巧,问题出在迷你匹配字符串上。我将所有文件和子文件夹的 recommended value 更改为 recommended value,现在可以使用了。

通过使用 **\* 而不是 ** 它现在可以工作了。