Jenkins无法使用SVN凭据或下载新插件/新版本 [英] Jenkins not able to use SVN credentials or download new plugins/new versions

查看:304
本文介绍了Jenkins无法使用SVN凭据或下载新插件/新版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人可以建议如何解决这两个问题吗?

-无法升级Jenkins和SVN插件

-无法连接到svn

我正在Windows 64位计算机上设置Jenkins.它已配置为作为Windows服务运行.

I am setting up Jenkins on a Windows 64 bit machine. It's configured to run as a windows service.

我们正在Windows 7 64位操作系统上运行此

We are running this on Windows 7 64 bit OS

詹金斯1.482

我能够从计算机上的用户帐户进行SVN更新/签出.

I am able to do an SVN update/checkout from my user account on the machine.

当我尝试在jenkins上设置作业时,尝试添加svn凭据时得到以下提示

When I attempt to set up a job on jenkins I get the following when trying to add svn credentials

FAILED: org.tmatesoft.svn.core.SVNErrorMessage: svn: OPTIONS /svn/client/trunk failed

更多详细信息为:

FAILED: org.tmatesoft.svn.core.SVNErrorMessage: svn: OPTIONS /svn/client/trunk failed

org.tmatesoft.svn.core.SVNException: svn: OPTIONS /svn/client/trunk failed
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:298)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:283)
    at org.tmatesoft.svn.core.internal.io.dav.http.HTTPConnection.request(HTTPConnection.java:271)
    at ...

我停止了该服务,并从命令行运行了詹金斯,并尝试了同样的事情-结果相同.

I stopped the service and ran Jenkins from command line and tried the same thing - with the same result.

我能够使用乌龟客户端和具有相同凭据的firefox连接到svn服务器.

I am able to connect to the svn server with a tortoise client and via firefox with the same credentials.

在研究此问题时,我看到了一些有关类似问题的文章,并且唯一声称可以解决此问题的文章回溯到Jenkins svn插件版本.

In researching the issue I saw a few posts about similar problems and the only one that seems to claim to fix it is rolling back to Jenkins svn plugin version.

然后我尝试为svn安装最新的jenkins和插件.下载失败.啊哈,我想-显然是防火墙问题.所以我禁用了防火墙.

I then tried to install the latest jenkins and Plugin for svn. The downloads failed. Aha, I thought - obviously a firewall issue. So I disable the firewall.

还是不好.我无法自动下载或获取新的Jenkins或SVN插件.

Still no good. I can't automatically download or get the new Jenkins or SVN plugin.

推荐答案

尝试使用此选项启动jenkins:

Try starting jenkins with this option:

-Dsvnkit.http.sslProtocols="SSLv3"

或者,如果Jenkins在单独的JVM中启动svn插件,则尝试将行添加到svn插件运行配置所在的位置.

Or, if Jenkins is starting svn plugin in a separate JVM, try adding the line to wherever the svn plugin run configuration is.

这是svnkit的一个已知问题,Jenkins的svn插件使用了该问题:

It's a known problem with svnkit, which is used by Jenkins' svn plugin:

http://issues.tmatesoft.com/issue/SVNKIT-176

此外,答案对于升级svn插件可能会有所帮助.

Also, this answer can be helpful with regards to upgrading your svn plugin.

要更改Windows服务命令行,请执行以下操作:

To change your Windows service commandline:

  1. 打开命令行窗口 cmd.exe
  2. sc qc "JenkinsSlave"(如果这就是您的服务名称)
  3. 选择并复制BINARY_PATH_NAME值
  4. 更改它,在jar路径后添加-Dsvnkit.http.sslProtocols=""SSLv3""-注意双引号
  5. sc config "JenkinsSlave" binPath= <paste the changed value copied earlier>
  1. open a command line window cmd.exe
  2. sc qc "JenkinsSlave" (if that's what your service name is)
  3. select and copy the BINARY_PATH_NAME value
  4. change it, adding -Dsvnkit.http.sslProtocols=""SSLv3"" after the jar path - mind the double quote
  5. sc config "JenkinsSlave" binPath= <paste the changed value copied earlier>

用您的服务名称替换 JenkinsSlave .

这篇关于Jenkins无法使用SVN凭据或下载新插件/新版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆