如何在TFS Linux代理中下载工件?
我在2017年TFS中创建了构建和发布定义。在构建定义中,当我在基于Linux的代理上运行的发布管道中使用这些工件时,我在windows server共享路径上发布工件,如\server\drop如何在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
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代理