在触发从 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禁用构建服务器中的代理后,它开始按预期工作。谢谢!!