Jenkins svn failure refused

I tried to configure Jenkins to connect to the remote svn to set the build, but failed. Error "svn: OPTIONS /svnpath failed" due to connection refused .

I am for the proxy. Here is the configuration and observation:

  • ~/.subversion/servers has a proxy server configured.
  • /etc/sysconfig/jenkins has a proxy server configured JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Dhttp.proxyHost=[ip] -DhttpProxyPort=[port] -Dhttp.auth.preference=Basic"
  • in the console, you can do svn checkout https://company.com/svnpath without problems
  • tried to use svnkit and run svn checkout https://company.com/svnpath , no problem

I'm confused. Is this a proxy problem? Or do I need to set some other settings in Jenkins?

Update:

This works for me, I incorrectly dialed the port parameter: JENKINS_JAVA_OPTIONS="-Djava.awt.headless=true -Dhttp.proxyHost=[ip] -Dhttp.proxyPort=[port] -Dhttp.auth.preference=Basic"

+4
source share
2 answers

The Proxy-Port parameter (metropolitan "P") was incorrect:

JENKINS_JAVA_OPTIONS = "- Djava.awt.headless = true -Dhttp.proxyHost = [ip] -Dhttp.proxyPort = [port] -Dhttp.auth.preference = Basic"

Since the author does not add the solution as an answer, I thought I was doing as Martin Foot suggested in his comment ...

+1
source

I struggled with the same symptoms as @jackysee (who came across them on * nix) in a Windows 7 box with Jenkins 1.444. Like @jackysee, I thought I had problems setting up the proxy server-side, but my problem turned out to be just the problem of setting the Subversion proxy server on the client side. For the SYSTEM user, I installed the following file:

 Windows\System32\config\systemprofile\AppData\Roaming\Subversion\servers 

For a regular Windows user (easier to test), fix the following file instead:

 Users\[uname]\AppData\Roaming\Subversion\servers 

In the [groups] section, I incorrectly specified the external Subversion repository. The error that gave (similar to @ jackysee's) was svn: OPTIONS /svn failed . The configuration was wrong here :

 [groups] wwj = worldwind31.arc.nasa.gov/svn 

And here is the fix that worked for me:

 [groups] wwj = worldwind31.arc.nasa.gov 

Later, I discovered that the Subversion book gives a much better description of the purpose of the [groups] section than the misleading comments in servers . The Subversion book explains that the values ​​in the [groups] section are used to identify host names , while the comments in the servers file mislead you into believing that the values ​​must be repository URLs (incorrect).

0
source

All Articles