SVN command line in jenkins fails due to server certificate mismatch

前端 未结 8 1164
长情又很酷
长情又很酷 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.

提交回复
热议问题