Reputation: 801
Ok, this is kinda related to a previous question i asked; Cannot do git-svn fetch behind proxy
But this time I need an automated jenkins script that does git svn fetch
to a repository that's outide our proxy.
As I found out in the other question, git-svn uses the proxy settings that's specified in the file servers
. And servers
is located at ~/.subversion.
Jenkins is set up on a machine running Windows server 2008, and I've searched for every servers
file on the machine and modified them all, but I still isn't able to do git svn fetch
without failing at the proxy.
I've tried to put a .subversion
folder in the workspace, since ~ evaluates to the current workspace (I think) in jenkins, but that didn't work either.
Any other ideas?
Upvotes: 1
Views: 517
Reputation: 7365
I think the http_proxy and https_proxy environment variables are ignored by both Git and Subversion.
You can check inside a jenkins job where the ~ path is with a small powershell script:
get-item ~
I guess it will be:
C:\Users\MYUSER.subversion\servers
Upvotes: 1
Reputation: 1324607
Simply try and set, either as environment variable on the machine, or as environment variable on the job itself (with the EnvInject plugin) the variables:
HTTP_PROXY=http://<username>:<password>@<proxy>:<port>
HTTPS_PROXY=http://<username>:<password>@<proxy>:<port>
NO_PROXY=.<company>
Having the password set directly isn't secure, but this is only for testing, for you to check if the git svn clone
can proceed.
Upvotes: 0