SVN command line in jenkins fails due to server certificate mismatch

前端 未结 8 1165
长情又很酷
长情又很酷 2021-02-07 12:53

When I run the svn command line from the Jenkins shell I get this error:

 D:\\Jenkins\\jobs\\Merge Trunk to Stable\\workspace\\stable>svn up --trust-server-ce         


        
8条回答
  •  抹茶落季
    2021-02-07 13:16

    Running Svn commands through Jenkins on slave was giving me difficulty. I did the following:

    If you are on unix then follow this link: http://www.microhowto.info/howto/configure_subversion_to_trust_a_given_ssl_certificate.html

    If you are on Windows then do:

    cd %APPDATA%\Subversion\
    

    Then edit the server file in that directory by removing the # sign from the ssl-authority-files element and update the path to where you stored your ssl certificate file.

    Also change the following, if you like it to store your credentials.

    store-passwords = yes 
    store-ssl-client-cert-pp = yes
    

    Once that is done, you would also need to add the certificate to your windows machine by following Add the Cert to the Trusted Root CA Store

提交回复
热议问题