Xcode Server not using the network proxy settings to reach GitHub

Hello,


Does anyone know how to configure Xcode Server to reach GitHub through a proxy?


Our proxy settings are configured under the network settings for the Ethernet port. A desktop session on the server correctly reaches GitHub, but the server times out with the following error in the logs:


Apr  7 18:20:16 buildserver com.apple.dt.Xcode.sourcecontrol.Git[7091]: #DVTSourceControl Notice: Error with libgit operation (git_remote_connect(remote, GIT_DIRECTION_FETCH, &remoteCallbacks))
  Method: -[DVTSourceControlGitPlugInPrimary _libgit_headRevisionOfRemoteRepository:andBranches:completionBlock:]
Apr  7 18:20:16 buildserver node[94]: #DVTSourceControl Error: -1 curl error: Failed to connect to github.com port 443: Operation timed out (-1)
  Underlying Error: curl error: Failed to connect to github.com port 443: Operation timed out (-1)
  Method: __97-[DVTSourceControlManager revisionOfLocation:inRepository:branchAndTagLocations:completionBlock:]_block_invoke_2


It looks like git doesn't use the network proxy settings. Is there a way to manually configure the proxy settings for the git instance used by Xcode Server?

Answered by Beast in 130012022

I managed to get builds working through the proxy by using an app called Proxifier and creating a rule to route all GitHub traffic over SOCKS5.

Accepted Answer

I managed to get builds working through the proxy by using an app called Proxifier and creating a rule to route all GitHub traffic over SOCKS5.

I believe that it might be the same problem that Xcode IDE has: FB9447729 (You can find the details on openradar).

Xcode Server not using the network proxy settings to reach GitHub
 
 
Q