我在构建定义中遇到了Publish Build Artifacts
任务的问题。当它被添加到定义中时,它的Paraller Copy
选项设置为8
。在更改为4
之后,即使更改被恢复,它也会自行中断。现在,它仅在禁用Paraller Copy
选项时才起作用。以下是日志文件:
******************************************************************************
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
******************************************************************************
发布于 2019-10-18 16:29:24
虽然robocopy
在2003年后才包含在Windows2000中,唯一需要做的就是卸载Windows Resource Kit 2003
,使任务使用最新版本。
发布于 2019-10-15 21:58:01
生成使用的是不支持此参数的robocopy版本XP010。
也许您已经更改了其他内容,从而导致构建在另一个代理上运行。
https://stackoverflow.com/questions/58395477
复制相似问题