Azure devops Jenkins与团队服务的集成
我试图将jenkins作为一个服务钩子加入VisualStudioTeamServices。这个想法是当一个代码被推送到master分支时,自动启动jenkins的一个作业。似乎所有配置都正确,但当事件发生时,会出现错误:Azure devops Jenkins与团队服务的集成,azure-devops,Azure Devops,我试图将jenkins作为一个服务钩子加入VisualStudioTeamServices。这个想法是当一个代码被推送到master分支时,自动启动jenkins的一个作业。似乎所有配置都正确,但当事件发生时,会出现错误: "An error occurred while sending the request. Unable to connect to the remote server" 请求是notifyCommit url,如果我粘贴到浏览器中,它将启动jenkins作业。因此,似乎有
"An error occurred while sending the request. Unable to connect to the remote server"
请求是notifyCommit url,如果我粘贴到浏览器中,它将启动jenkins作业。因此,似乎有些配置不正确,因为团队服务无法连接到Jenkins
"Error Details
System.Net.Http.HttpRequestException: An error occurred while sending the request. --->
System.Net.WebException: Unable to connect to the remote server --->
System.Net.Sockets.SocketException: A connection attempt failed because the
connected party did not properly respond after a period of time, or
established connection failed because connected host has failed to respond"
Jenkins不可访问,因为它不在外部公开。这里的问题是,您的Jenkins build服务器托管在您的组织网络中
要解决这个问题,您可以在fx Azure中托管构建服务器。您的Jenkins服务器托管在哪里?本地/本地?不在云中,安装在我们组织中的公共虚拟机中,可以在我们域的任何计算机上访问。DMZ中的VM是否可以从外部世界访问?因为如果您使用的是VSTSO(Visual Studio Team Services Online),则它无法访问您的内部域或网络。否,因此我无法从Team Services自动触发jenkins作业?另一个想法是在Git中手动执行post接收钩子,但由于我在team services中使用Pull请求,所以我无法执行该操作。是的,由于构建服务器位于网络中,VSTSO无法访问它。因此出现“无法连接到远程服务器”错误。如果您有所需的许可证,您可以在组织内旋转自己的Team Services Server / Team Foundation服务器。如果您在设置TFS服务器时需要更多帮助,请访问mail pnw(a)lego.com