我正尝试在Jenkins作业中运行svn2git,以便定期同步Git存储库及其在本地服务器上的SVN目录。
作业失败,并输出以下消息
C:\GitDirectory>svn2git --rebase
command failed:
2>&1 git svn fetch
Error validating server certificate for 'https://machinename:8443':
- The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually!
Certificate information:
- Hostname: machinename
- Valid: from Nov 19 09:07:49 2008 GMT until Nov 17 09:07:49 2018 GMT
- Issuer: machinename
- Fingerprint: 53:ba:1d:75:fd:0c:cd:7e:87:24:93:ba:28:32:11:2c:a9:8e:a6:b7
Certificate problem.
(R)eject, accept (t)emporarily or accept (p)ermanently? RA layer request failed: PROPFIND request failed on '/svn/directory': PROPFIND of '/svn/directory': Server certificate verification failed: issuer is not trusted (https://machinename:8443) at /usr/lib/perl5/site_perl/Git/SVN.pm line 148Jenkins在Windows中以本地管理员用户帐户运行。
我使用这个帐户通过命令提示符运行svn2git --rebase,并永久地接受了证书。
命令提示符中的后续svn2git --rebase不会引发此消息,但是当我尝试通过Jenkins作业运行svn2git时,仍然会收到此消息。
有什么办法让Jenkins永久接受这个证书吗?
发布于 2017-09-23 21:06:19
这是因为svn2git无法处理您的服务器未接受证书的情况。请在服务器中安装证书或使用svn2gitnet,它可以正确处理证书问题。
https://stackoverflow.com/questions/22632444
复制相似问题