Jenkins cannot access to SVN (https://)

后端 未结 3 1657
孤独总比滥情好
孤独总比滥情好 2021-02-14 07:08

I created Jenkins project that have files on SVN (https://repo.xxx.xxx/svn/priv/projectname; certificate is self-signed). My problem is that Jenkins have empty workspace for thi

3条回答
  •  耶瑟儿~
    2021-02-14 07:58

    It looks like Jenkins uses svn credentials cache to authenticate. Those credentials are stored in the ~/.subversion/auth folder. I was struggling because of this and the solution i found was to clean up ~/.subversion/auth folder and then checkout from the console of the machine Jenkins is installed on, append the username Jenkins will use as a parameter. Something like this

    svn checkout --username jenkins-svn-user http://svn.server/repo
    

    That will ask for the credentials of the jenkins-svn-user and will store them locally so that Jenkins can use them. Then you can check on your job configuration whether it worked or not.

    Hope this helps

提交回复
热议问题