【问题标题】:Publish file in a release TFS在发布 TFS 中发布文件
【发布时间】:2018-05-07 08:50:30
【问题描述】:

我正在尝试使用 TFS 中的发布,我添加了一个任务“复制发布工件”来发布将在发布中生成的文件,它给了我错误:

##[error]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'StagingFolder' because it is null.

我使用“Windows 机器文件复制”任务进行测试,它给出了错误 53

Copy started for - '\\documents-oab.si.fr.intSraorange\alfresco\webdav\Sites\cc-dtp\documentLibrary\andbox_Auto /user:*****  *****'
2018-05-07T08:43:15.7623208Z ##[error]System.Management.Automation.RuntimeException: Copying failed for resource : 
2018-05-07T08:43:15.7623208Z 
2018-05-07T08:43:15.7623208Z       Failed to connect to the path \\documents-oab.si.fr.intSraorange\alfresco\webdav\Sites\cc-dtp\documentLibrary\andbox_Auto /user:***** ***** with the user ***** for copying.
2018-05-07T08:43:15.7623208Z     System error 53 has occurred. 
2018-05-07T08:43:15.7623208Z The network path was not found.

我的问题是:我如何发布在发布中生成的文件有什么方法吗??

【问题讨论】:

  • 我的问题是:我如何发布在发布中生成的文件有什么方法吗??

标签: tfs publish release


【解决方案1】:

您不能使用暂存文件夹在发布中发布工件,因为它确实不存在。它只是一个构建变量。

当您使用“Windows 机器文件复制”时,会在日志中显示“找不到网络路径。”。

或者它真的不存在或者运行任务的用户没有访问它的权限。

要将文件复制到一个位置到另一个位置,您可以:

  • 使用 Windows 机器文件副本
  • 使用文件复制任务
  • 使用 powershell 命令复制文件
  • 使用命令行复制文件

【讨论】:

    猜你喜欢
    • 2018-11-04
    • 2021-05-12
    • 1970-01-01
    • 1970-01-01
    • 2018-08-20
    • 2017-07-06
    • 1970-01-01
    • 2014-05-25
    • 1970-01-01
    相关资源
    最近更新 更多