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.
git config --global http.proxy http://proxy.com:8080
git config --global https.proxy https://proxy.com:8080
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!
EDIT 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.
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.