首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >需要通过Cake验证SVN存储库的帮助

需要通过Cake验证SVN存储库的帮助
EN

Stack Overflow用户
提问于 2019-04-06 00:21:02
回答 1查看 86关注 0票数 1

我正在开发一个使用SVN (托管在CloudForge中)和Cake的半自动构建过程。我是Cake的新手,所以我想我应该从简单的开始。

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

代码语言:javascript
复制
#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文件时,我得到以下结果:

代码语言:javascript
复制
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存储库进行身份验证的正确方式是什么?

EN

回答 1

Stack Overflow用户

发布于 2020-05-11 20:33:39

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/55539704

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档