SVN command line in jenkins fails due to server certificate mismatch

前端 未结 8 1149
长情又很酷
长情又很酷 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:18

    This may happen even you had accept the certificate.

    In Linux, Jenkins use its own username. You can use command sudo su jenkins switch to jenkins user , then use command cd ~ and ls to see the jenkins user's root path. For me, it is the jenkins install path (var/lib/jenkins).

    You can see .subversion package in your user package. If you had accept the certificate before, you can see auth package in .subversion.

    Copy the whole .subversion package to the jenkins install package(jenkins user's root path).

    Try it again, use svn up command in jenkins shell and it would work.

    My English is poor, thanks for your reading.

    0 讨论(0)
  • 2021-02-07 13:27

    Had same issue with Jenkins and Window 7 . I solved this by go into services and select Jenkins and go to Log-on and enter the administrative credentials and restart the jenkins service.

    Hope this solve your issue.

    0 讨论(0)
提交回复
热议问题