发布构建工件:无效参数:“/MT:8”
Publish Build Artifacts: Invalid Parameter: "/MT:8"
我对构建定义中的 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\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
******************************************************************************
构建使用的 robocopy Version XP010 不支持此参数。
也许您更改了其他内容导致构建在另一个代理上 运行。
虽然 robocopy
包含在 2003 年后的 Windows 中,但唯一需要的是卸载 Windows Resource Kit 2003
以使任务使用最新版本。
我对构建定义中的 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\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
******************************************************************************
构建使用的 robocopy Version XP010 不支持此参数。
也许您更改了其他内容导致构建在另一个代理上 运行。
虽然 robocopy
包含在 2003 年后的 Windows 中,但唯一需要的是卸载 Windows Resource Kit 2003
以使任务使用最新版本。