从 TFS 构建触发 Visual Studio 在线发布

Trigger Visual Studio Online Release from TFS Build

我想通过 Visual Studio Online 上托管的发布管理服务触发发布。构建代理和控制器位于专用服务器上,该服务器还包含 Release Management 客户端(版本 2013.4)。 我调整了构建过程模板以允许在成功构建结束时触发发布。 为了启动发布,流程模板使用以下参数调用 "ReleaseManagementBuild.exe"(显然与 RM 客户端一起安装):

ReleaseManagementBuild.exe -tfs  https://MyServerName.visualstudio.com/defaultcollection -tp "My Project Name" -bd xxx -bn yyy -ts zzz -nologo

结果我得到以下错误:

ERROR: The TFS collection (https://MyServerName.visualstudio.com/defaultcollection) does not exist in the Release Management Server.

为了缩小问题的范围,我自己 运行 在构建服务器上执行了相同的命令(不是通过构建过程),但得到了同样的错误。 直接从 RM 客户端触发发布非常有效。

有没有人做过类似的事情?我的问题是什么?

目前VSO中的Release Management服务仅支持vNext发布模板,仅支持vNext REST API触发发布。 ReleaseManagementBuild.exe 仅适用于基于代理的版本。