How to use a specific proxy on an agent with Git?

Article ID:360052639891
1 minute readKnowledge base

Issue

I’m using a different proxy on my Controller and my Agent.

Resolution

The Git Plugin does not support this specific use case. It will always use the proxy information of the Controller to perform a checkout. See JENKINS-31464 for more details.

You can still bypass the Controller proxy on an agent by deploying on each agent a .gitconfig file that will override the configuration from the Controller.

References