当我从Jenkins shell运行svn命令行时,我收到此错误:
D:\Jenkins\jobs\Merge Trunk to Stable\workspace\stable>svn up --trust-server-cert --non-interactive
Updating '.':
svn: E175002: Unable to connect to a repository at URL 'https://xxx/stable'
svn: E175002: OPTIONS of 'https://xxx/stable': Server certificate verification failed: certificate issued for a different hostname, issuer is not trusted (https://xxx)
Run Code Online (Sandbox Code Playgroud)
但是当我从命令行CMD窗口运行相同时,它是可以的:
D:\Jenkins\jobs\Merge Trunk to Stable\workspace\stable>svn up
Updating '.':
At revision 1797.
Run Code Online (Sandbox Code Playgroud)
要么
D:\Jenkins\jobs\Merge Trunk to Stable\workspace\stable>svn up --trust-server-cert --non-interactive
Updating '.':
At revision 1797.
Run Code Online (Sandbox Code Playgroud)
知道怎么解决这个问题?