Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在TFS Linux代理中下载工件?_Tfs_Azure Devops_Tfsbuild_Tfs 2015_Azure Pipelines Release Pipeline - Fatal编程技术网

如何在TFS Linux代理中下载工件?

如何在TFS Linux代理中下载工件?,tfs,azure-devops,tfsbuild,tfs-2015,azure-pipelines-release-pipeline,Tfs,Azure Devops,Tfsbuild,Tfs 2015,Azure Pipelines Release Pipeline,我在2017年TFS中创建了构建和发布定义。在构建定义中,当我在基于Linux的代理上运行的发布管道中使用这些工件时,我在windows server共享路径上发布工件,如\server\drop An error occurred during download: System.NotSupportedException: Cannot download artifacts from a file share using OSX or Linux agent. You can download

我在2017年TFS中创建了构建和发布定义。在构建定义中,当我在基于Linux的代理上运行的发布管道中使用这些工件时,我在windows server共享路径上发布工件,如\server\drop

An error occurred during download: System.NotSupportedException: Cannot download artifacts from a file share using OSX or Linux agent. You can download artifact from server or use a Windows 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()
下载过程中出错:System.NotSupportedException:无法使用OSX或Linux代理从文件共享下载工件。您可以从服务器下载工件或使用Windows代理。
位于Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.BuildArtifact.d_u8.MoveNext()上
---来自引发异常的上一个位置的堆栈结束跟踪---
在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()中
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
位于Microsoft.VisualStudio.Services.Agent.Worker.Release.Artifacts.BuildArtifact.d_u5.MoveNext()上
---来自引发异常的上一个位置的堆栈结束跟踪---
在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()中
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.VisualStudio.Services.Agent.Worker.Release.ReleaseJobExtension.c__DisplayClass34_2.d.MoveNext()上
---来自引发异常的上一个位置的堆栈结束跟踪---
在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()中
在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)中
在Microsoft.VisualStudio.Services.Agent.Worker.Release.RetryExecutor.d_u20.MoveNext()上

错误消息还包括两种可能的问题解决方案。选择一个:

无法使用OSX或Linux代理从文件共享下载工件您可以从服务器下载工件或使用Windows代理

  • 停止使用文件共享存储工件,改用服务器选项
  • 使用Windows代理
真的没有令人信服的理由再使用文件共享工件存储了;它包含在TFS 2015中是为了与XAML版本向后兼容