问题描述
我正在为持续集成和(希望)持续部署设置 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?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!