在发布TFS中发布文件
我正在尝试在TFS中使用release,我添加了一个任务“复制发布工件”,以发布将在发布中生成的文件。它给了我一个错误:在发布TFS中发布文件,tfs,publish,release,Tfs,Publish,Release,我正在尝试在TFS中使用release,我添加了一个任务“复制发布工件”,以发布将在发布中生成的文件。它给了我一个错误: ##[error]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'StagingFolder' because it is null. 我使用任务“Windows机器文件复制”进行测试,它给出了错误53 Copy star
##[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.
我的问题是:我如何发布发布中生成的文件有什么方法吗???您不能使用staging文件夹发布发布中的工件,因为它确实不存在。它只是一个构建变量 当您使用“Windows计算机文件副本”时,在日志中显示“未找到网络路径” 或者它确实不存在,或者运行任务的用户没有访问它的权限 要将文件复制到一个位置到另一个位置,您可以:
- 使用Windows计算机文件副本
- 使用文件复制任务
- 使用powershell命令复制文件
- 使用命令行复制文件