How to configure TeamCity with private files?(如何使用私有文件配置 TeamCity?)
问题描述
我正在为持续集成和(希望)持续部署设置 TeamCity.一些构建步骤将涉及私有文件,例如
I'm setting up TeamCity for Continuous Integration and (hopefully) Continuous Deployment. Some of the build steps will involve private files, e.g.
- 用于强命名 .NET 程序集的 .snk 文件
- 用于发布工件(例如到 NuGet 或 CodePlex)的密码/令牌文件
由于这些文件包含私人数据,我不想将它们放入(可公开访问的)源代码控制系统中.
Since these files contain private data I don't want to put them into the (publicly accessible) source control system.
我正在为 AutoFixture 所以我没有对服务器的物理访问权限.我希望有一个功能可以让我上传此类文件,但找不到任何此类文件.
I'm setting up http://teamcity.codebetter.com for AutoFixture so I don't have physical access to the server. I was hoping for a feature that would let me upload such files, but can't find anything of the kind.
什么是最合适的解决方案?
What would be the most appropriate solution?
推荐答案
TeamCity 支持多个 VCS 根,因此您可以使用这些私有文件添加一个额外的 VCS 根.
TeamCity supports multiple VCS roots, so you could just add an extra VCS root with these private files.
显然,这需要第二个存储库是私有的 - 但这是您想要的任何方式.将这些文件置于源代码管理中是一件很棒的事情.
Obviously this would require that the second repository is private - but that is what you want any way. Having those files in source control is a great thing.
这篇关于如何使用私有文件配置 TeamCity?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何使用私有文件配置 TeamCity?
基础教程推荐
- 如果条件可以为空 2022-01-01
- 在 VB6 或经典 ASP 中使用 .NET 2022-01-01
- C# 9 新特性——record的相关总结 2023-04-03
- 将数据集转换为列表 2022-01-01
- 重新排序 WPF TabControl 中的选项卡 2022-01-01
- 更新 Visual Studio 中的 DataSet 结构以匹配新的 SQL 数据库结构 2022-01-01
- 获取C#保存对话框的文件路径 2022-01-01
- Mono https webrequest 失败并显示“身份验证或解密失败" 2022-01-01
- SonarQube C# 分析失败“不是指针的有效行偏移" 2022-01-01
- 从 C# 控制相机设备 2022-01-01
