需要帮助通过Cake验证SVN回购

时间:2019-04-05 16:21:02

标签: svn

我正在使用SVN(托管在CloudForge中)和Cake进行半自动构建过程。我是Cake的新手,所以我想从简单的事情开始。

这是我的build.cake文件中的内容:

#addin "Cake.Svn"

 var settings = new SvnCheckoutSettings();
 var creds = new SvnCredentials();
 creds.Username = "uname";
 creds.Password = "pwd";
 settings.Credentials = creds;

 var result = SvnCheckout(
         new Uri("https://cloudforge_repo"),
         @"c:\local_dir", settings);

     Verbose("Revision: {0}", result.Revision);

运行build.ps1文件时,得到以下结果:

Preparing to run build script...
Running build script...
The 'addin' directive is attempting to install the 'Cake.Svn' package
without specifying a package version number.
More information on this can be found at https://cakebuild.net/docs/tutorials/pinning-cake-version
It's not recommended, but you can explicitly override this warning
by configuring the Skip Package Version Check setting to true
(i.e. command line parameter "--settings_skippackageversioncheck=true",
environment variable "CAKE_SETTINGS_SKIPPACKAGEVERSIONCHECK=true",
read more about configuration at https://cakebuild.net/docs/fundamentals/configuration)
The assembly 'Cake.Svn, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null'
is referencing an older version of Cake.Core (0.28.0).
For best compatibility it should target Cake.Core version 0.33.0.
Error: One or more errors occurred. Unable to connect to a repository at URL 'https://cloudforge_repo'.

使用Cake验证SVN存储库的正确方法是什么?

1 个答案:

答案 0 :(得分:0)

问题与服务器证书相关,这是完整的消息“ SharpSvn.SvnRepositoryIOException:服务器SSL证书验证失败:为其他主机名颁发的证书,发行者不受信任”