tfs - VSTS 错误 : "Publishing build artifacts failed with an error: Unable to create directory ' {p}'

标签 tfs azure-pipelines

我在我的本地主机上创建了一个文件夹,并通过授予所有权限来共享它。

现在在构建定义中,我使用了 “发布神器”并按以下屏幕截图所示进行配置:

enter image description here

错误:我在构建过程中遇到错误,无法在相应位置发布工件。错误显示在下面的屏幕截图中:

enter image description here

任何帮助将不胜感激。提前致谢。

最佳答案

发布工件构建任务在构建代理上运行。该构建代理无法将本地主机上的文件共享寻址为 \\localhost\something .您应该使用网络上可用的主机名,例如\\mylaptop\publicshare .

事实上,如果构建代理是 VSTS 托管代理,它将无法看到您的文件共享,除非它在 ​​Internet 上可见。基本上,这就是错误消息的内容:

If directory is a file share, please verify the share name is correct, the share is online, and the current process has permission to access the share.

关于tfs - VSTS 错误 : "Publishing build artifacts failed with an error: Unable to create directory ' {p}',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50235239/

相关文章:

c# - Team Foundation Server 2013 update 4 不构建 .net 4.6.1 应用程序

visual-studio-2010 - 在带有 TFS 2008 的 VS 2010 中有没有办法将您的更改作为新分支检入?

.net - 为什么 Visual Studio 在 Azure DevOps checkin 时排除 BIN 和 OBJ 文件夹

c# - 使用 WindowsCredentials 连接到 TfsTeamProjectCollection

TFS 生成错误 : TF215097 - The following keys from the input dictionary do not map to arguments and must be removed

javascript - 创建自定义控件 tfs 2015

azure-devops - VSTS : Unable to add Build Tag which trigger release

azure - 在 Azure Pipelines 中使用托管标识 : GetUserAccessToken: Failed to obtain an access token of identity. AAD 返回静默失败

azure - 我可以通过使用测试程序集在构建管道中执行自动化测试来更新测试计划吗

azure - 在构建中使用 Azure 构建管道日志