svn - 使用 Release 插件时禁用 Hudson 中的证书检查

标签 svn ssl jenkins hudson

我正在尝试在 Hudson 中使用 Maven 发布插件。当我执行发布时,出现以下错误:

Provider message:
The svn command failed.
Command output:
svn: Commit failed (details follow):
svn: OPTIONS of 'https://servername/svn/project/trunk/testapp': Server certificate verification failed: issuer is not trusted (https://servername)

我们使用的是自签名证书。

我试过几种方法:

  1. 以运行构建的用户身份执行svn list
  2. svn-settings.xml 添加到 ~/.scm 中:trustServerCert 设置为 true

这些都没有解决问题。关于如何解决此问题的任何想法?

最佳答案

我解决的方法是:

  1. 登录到服务器(命令行 - SSH)
  2. 执行普通 svn 结帐:

      svn checkout https://someserverwithinvalidcertificate
      Error validating server certificate for 'https://someserverwithinvalidcertificate:443':
      - The certificate is not issued by a trusted authority. Use the
       fingerprint to validate the certificate manually!
    Certificate information:
     - Hostname: someserverwithinvalidcertificate
     - Valid: from Jul  1 12:14:08 2013 GMT until Jul  1 12:14:08 2014 GMT
     - Issuer: ???, ????, ????, ????, ??
     - Fingerprint: fb:44:5a:80:......c8:b0:8b:2f:d8:c4
    (R)eject, accept (t)emporarily or accept (p)ermanently? p
    svn: OPTIONS of 'https://someserverwithinvalidcertificate': 200 OK               (https://someserverwithinvalidcertificate)
    

在我永久接受证书后,hudson 版本执行没有任何问题。

关于svn - 使用 Release 插件时禁用 Hudson 中的证书检查,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17654742/

相关文章:

git - 您的提交消息使用哪种样式?基于技术还是基于功能?

svn - 如何管理 SVN 标签中的修订编号?

azure - Azure 网站返回错误的 SSL 证书

java - Jenkins 调用批处理文件卡在Windows 7中

java - 在 Jenkins 管道脚本中找不到适合抓取的类加载器

java - SVN删除的文件,如何恢复?

java - 使用 SVN 正确将 Apache nutch 导入 eclipse EE juno

php - 使用 https 将根域重定向到使用 wordpress 的子文件夹

ssl - Kafka ssl Producer EOFException 而 Producer.send 来自 Cloud Foundry

jenkins - 在 Jenkins 中发布最新版本