Gorka
Gorka

Reputation: 367

Jenkins integration with Team Services

I am trying to intregate jenkins in visual studio team services as a service hook. The idea is when a code to master branch is pushed, launch a job of jenkins automatically. Everything seems to be configured correctly but when the event occurs, it gives an error:

"An error occurred while sending the request. Unable to connect to the remote server"

The request is the notifyCommit url that if I paste in the browser works and it launches the jenkins job. So, it seems that something is not correctly configured because from team services cannot connect to 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"

Upvotes: 0

Views: 327

Answers (2)

Webbanditten
Webbanditten

Reputation: 880

The problem here is that your Jenkins build server is hosted within your organizations network.

To solve it, you could host your build server in fx Azure.

Upvotes: 1

Gorka
Gorka

Reputation: 367

Jenkins was not accessible because is not public outside.

Upvotes: 0

Related Questions