使用Release插件时,在Hudson中禁用证书检查

时间:2013-07-15 12:53:04

标签: svn ssl jenkins hudson

我正在尝试在Hudson中使用Maven Release Plugin。当我执行发布时,我收到以下错误:

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. 以运行构建
  2. 的用户身份执行svn list
  3. svn-settings.xml添加到~/.scm,其中:trustServerCert设置为true
  4. 这些都没有解决问题。有关如何解决此问题的任何想法?

1 个答案:

答案 0 :(得分:1)

我解决它的方式是:

  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)
    
  3. 在我永久接受证书后,哈德森的发布没有任何问题。