0

在触发从 TFS 构建以通过发布管理(也称为 In Release)进行部署时,我收到如下所述的错误。

*错误 *

The account running the TFS build service (TFSBuildServices) needs to be added as a system user in the Release Management Server.
    at Microsoft.TeamFoundation.Release.Workflow.Services.ReleaseWorkflowService.InitiateFromBuild(String teamFoundationServerUrl, String teamProject, String buildDefinition, String buildNumber, String targetStageName)
    at Microsoft.TeamFoundation.Release.Build.Program.Release()
    at Microsoft.TeamFoundation.Release.Build.Program.Main()**

我使用的模板是ReleaseDefaultTemplate.11.1.xaml

任何帮助将非常感激。

谢谢!!

- 更新 -

下面是在 Build Server 下生成的日志

“C:\Users\TFSBuildServices\AppData\Local\Temp\Microsoft\ReleaseManagement\12.0\Logs\ReleaseManagementBuild.log”

1/7/2014 3:04:14 PM - Error - Error loading profile for current user: ***\tfsbuildservices

1/7/2014 3:04:14 PM - Error - Unable to connect to the remote server: \r\n\r\n   at System.Net.HttpWebRequest.GetRequestStream(TransportContext& context)
   at System.Net.HttpWebRequest.GetRequestStream()
   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
   at Microsoft.TeamFoundation.Release.Data.ConfigurationServiceRef.ConfigurationService.GetUserByUserName(String userName)
   at Microsoft.TeamFoundation.Release.Data.Model.CurrentUser.get_Profile()

   1/7/2014 3:04:14 PM - Error - No connection could be made because the target machine actively refused it 127.0.0.1:29622: \r\n\r\n   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Exception& exception)

@Update 解决方案

感谢大家帮助解决此问题。

Buildserver中的代理是罪魁祸首。这是为服务帐户 tfsbuildservices启用的。因此,它总是访问错误的 RM 服务器(带有错误端口的本地地址)。

在为帐户 tfsbuildservices禁用构建服务器中的代理后,它开始按预期工作。谢谢!!

4

1 回答 1

5

在 Release Management 客户端中,添加与帐户TFSBuildServices匹配的新用户。设置“是服务用户吗?” 字段为是。

更新

根据您添加的附加日志,问题似乎与安装在 Build Server 框中的 RM 客户端的配置有关。

打开安装在 Build Server 框上的客户端,您应该会看到一个弹出窗口来配置指向 RM Server 的 URL。一旦您能够打开客户端,请尝试触发新的构建。

于 2014-01-03T21:47:09.830 回答