需要帮助使用Cake验证SVN回购协议吗
我正在使用SVN(托管在CloudForge)和Cake进行半自动构建过程。我对蛋糕还不熟悉,所以我想我应该从一些简单的东西开始 下面是我的build.cake文件中的内容:需要帮助使用Cake验证SVN回购协议吗,svn,Svn,我正在使用SVN(托管在CloudForge)和Cake进行半自动构建过程。我对蛋糕还不熟悉,所以我想我应该从一些简单的东西开始 下面是我的build.cake文件中的内容: #addin "Cake.Svn" var settings = new SvnCheckoutSettings(); var creds = new SvnCredentials(); creds.Username = "uname"; creds.Password = "pwd"; settings.Cre
#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 repo进行身份验证的正确方法是什么?问题与服务器证书相关这是完整的消息“SharpSvn.SvnRepositoryIOException:服务器SSL证书验证失败:针对不同主机名颁发的证书,颁发者不受信任”问题与服务器证书相关这是完整的消息“SharpSvn.SvnRepositoryIOException:服务器SSL证书验证失败:为其他主机名颁发的证书,颁发者不受信任”