SVN command line in jenkins fails due to server certificate mismatch

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

    I finally managed to solve the problem! What I did is simply put in Jenkins script:

    echo p | svn up --username  --password 
    

    This solved it! since the echo emulated the manual input to accept permanently the certificate.

    Root Cause is the fact that Jenkins shell scripts run under the windows service user - thus uses a different place for the user profile cache (in C:\Windows\System32\config\systemprofile\AppData\Roaming\Subversion instead of %USERPROFILE%\AppData\Roaming\Subversion\)

提交回复
热议问题