首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >发布生成项目:无效参数:"/MT:8“

发布生成项目:无效参数:"/MT:8“
EN

Stack Overflow用户
提问于 2019-10-15 21:06:35
回答 2查看 374关注 0票数 1

我在构建定义中遇到了Publish Build Artifacts任务的问题。当它被添加到定义中时,它的Paraller Copy选项设置为8。在更改为4之后,即使更改被恢复,它也会自行中断。现在,它仅在禁用Paraller Copy选项时才起作用。以下是日志文件:

代码语言:javascript
运行
复制
******************************************************************************
Starting: Publish Artifact to
******************************************************************************
==============================================================================
Task         : Publish Build Artifacts
Description  : Publish Build artifacts to the server or a file share
Version      : 1.120.1
Author       : Microsoft Corporation
Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=708390)
==============================================================================
robocopy.exe /E /COPY:DA /NP /R:3 /MT:8 "C:\BuildAgent-Publish\_work\1\s\Kdp" "C:\InstallationDataTemp" *
-------------------------------------------------------------------------------
   ROBOCOPY     ::     Robust File Copy for Windows     ::     Version XP010
-------------------------------------------------------------------------------
  Started : Tue Oct 15 14:22:25 2019
   Source - 
     Dest - 
    Files : 
  Options : /S /E /COPY:DAT /NP /R:3 /W:30 
------------------------------------------------------------------------------
ERROR : Invalid Parameter #5 : "/MT:8"
       Simple Usage :: ROBOCOPY source destination /MIR
             source :: Source Directory (drive:\path or \\server\share\path).
        destination :: Destination Dir  (drive:\path or \\server\share\path).
               /MIR :: Mirror a complete directory tree.
    For more usage information run ROBOCOPY /? or read Robocopy.Doc.
NOTE: Read "True Replication" in Robocopy.Doc prior to first use of /MIR !
****  /MIR can DELETE files as well as copy them !
robocopy exit code '16'
Publish build artifacts failed with error: powershell.exe failed with return code: 1
******************************************************************************
Async Command Start: Associate Artifact
******************************************************************************
Associated artifact 22 with build 227
******************************************************************************
Async Command End: Associate Artifact
******************************************************************************
******************************************************************************
Finishing: Publish Artifact to
******************************************************************************
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-10-18 16:29:24

虽然robocopy在2003年后才包含在Windows2000中,唯一需要做的就是卸载Windows Resource Kit 2003,使任务使用最新版本。

票数 0
EN

Stack Overflow用户

发布于 2019-10-15 21:58:01

生成使用的是不支持此参数的robocopy版本XP010。

也许您已经更改了其他内容,从而导致构建在另一个代理上运行。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/58395477

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档