Jenkins:服务器 SSL 证书验证失败 - 颁发者不受信任
Jenkins: Server SSL certificate verification failed - issuer is not trusted
我正在使用 Jenkins 进行自动构建。我在 jenkins 中调用一个批处理文件:
调用Setup_trunk_01.bat
Setup_trunk_01.bat的代码是:
svn propset svn:externals "https://svn02/vc/disney_kingdom_iphone/branches/maintenance/update12_gungho@90987 trunk" .
svn update .
我有错误:svn: E230001: Server SSL certificate verification failed: issuer is not trusted
当我手动调用它时,它起作用了。但是我无法更改 Setup_trunk_01.bat 的代码。我认为问题出在凭据上。但是我不知道到底要修复什么错误。
我猜你的 SVN 服务器正在为 HTTPS 使用自签名 SSL 证书。您应该联系系统管理员并请他申请由受信任的证书颁发机构签署的有效服务器证书。
您也可以通过在命令中添加 --trust-server-cert
command line option to your command. BTW, don't forget to add --non-interactive
选项让 SVN 客户端忽略此证书警告。
如果要使用自签名证书:在Jenkins服务器上SSH并在命令行执行一次:
svn list <REPO> --config-dir /var/lib/jenkins/.subversion/
永久接受自签名证书。而已。 --config-dir
应该指向 Jenkins 实例的 .subversion 文件夹。
我正在使用 Jenkins 进行自动构建。我在 jenkins 中调用一个批处理文件:
调用Setup_trunk_01.bat
Setup_trunk_01.bat的代码是:
svn propset svn:externals "https://svn02/vc/disney_kingdom_iphone/branches/maintenance/update12_gungho@90987 trunk" .
svn update .
我有错误:svn: E230001: Server SSL certificate verification failed: issuer is not trusted
当我手动调用它时,它起作用了。但是我无法更改 Setup_trunk_01.bat 的代码。我认为问题出在凭据上。但是我不知道到底要修复什么错误。
我猜你的 SVN 服务器正在为 HTTPS 使用自签名 SSL 证书。您应该联系系统管理员并请他申请由受信任的证书颁发机构签署的有效服务器证书。
您也可以通过在命令中添加 --trust-server-cert
command line option to your command. BTW, don't forget to add --non-interactive
选项让 SVN 客户端忽略此证书警告。
如果要使用自签名证书:在Jenkins服务器上SSH并在命令行执行一次:
svn list <REPO> --config-dir /var/lib/jenkins/.subversion/
永久接受自签名证书。而已。 --config-dir
应该指向 Jenkins 实例的 .subversion 文件夹。