title: How to configure proxy in Jenkins to access Git Repository?
body: <p>I am trying to configure Jenkins to checkout a branch from github and build. Locally I need to configure proxy to access github, so I executed the following and I am able to successfully access github and checkout. </p>
  
  <p>git config --global http.proxy <a href="http://proxy.com:8080" rel="nofollow noreferrer">http://proxy.com:8080</a> <br>
  git config --global https.proxy <a href="https://proxy.com:8080" rel="nofollow noreferrer">https://proxy.com:8080</a></p>
  
  <p>I don't know how to replicate these proxy setting for Jenkins user. Jenkins runs as Windows service so it does not access .gitconfig from my profile and hence Jenkins job is erroring out. Help please!</p>
  
  <p><em>EDIT</em> 
  I created a dummy job in Jenkins and configured proxy settings within the "Execute Windows batch command". I configured them with --global so it works for other builds.</p>