我对 VSTS 中的发布有疑问。虽然我确定它存在并且可以访问,但不知何故无法识别该路径。我试图将文件夹共享给所有人并更改了 VSTS 代理的服务帐户,但它仍然是一样的。有人有想法吗?谢谢
2017-09-29T10:26:47.4300253Z Directory '\\build_ezcm_01\build\Result\EZCM-Maven-CI\20170929.11\drop' does not exist. Falling back to parent directory: \\build_ezcm_01\build\Result\EZCM-Maven-CI\20170929.11
2017-09-29T10:26:47.7079394Z An error occurred during download: Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.ArtifactDownloadException: The artifact directory does not exist: \\build_ezcm_01\build\Result\EZCM-Maven-CI\20170929.11. It can happen if the password of the account factoryvm-az179\buildguest is changed recently and is not updated for the agent. If this is the case, please consider re-configuring the agent.
at Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.BuildArtifact.<DownloadArtifactAsync>d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.BuildArtifact.<DownloadAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.<>c__DisplayClass34_2.<<DownloadArtifacts>b__2>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.VisualStudio.Services.Agent.Worker.Release.RetryExecutor.<ExecuteAsync>d__20.MoveNext()
最佳答案
检查您发布的代理队列。
我收到关于 FactoryVM 和密码的相同错误消息 - 我正在尝试使用网络共享进行 nuget 推送。当 nuget 任务是构建的一部分时(跳过工件并从构建目录推送),它工作得很好,但是当我将它移动到一个版本并且不得不从我的工件的文件共享中获取包时开始失败。
事实证明,我新创建的版本使用的是托管队列 (VS2017),而我使用的是专用代理。在(当前新的)编辑器中,这可以通过单击“任务”下的“代理阶段” block 来设置。切换队列解决了这个问题。
关于azure-devops - VSTS 版本中不存在工件目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46487041/