问题描述
我设置了TeamCity的持续集成和(希望)持续部署。一些构建步骤将涉及私人文件,如:
I'm setting up TeamCity for Continuous Integration and (hopefully) Continuous Deployment. Some of the build steps will involve private files, e.g.
- .SNK文件强命名.NET程序集
- 密码/令牌出版文物文件(例如到的NuGet或codePLEX)
由于这些文件包含私人数据,我不希望把它们放进(公开访问)源代码控制系统。
Since these files contain private data I don't want to put them into the (publicly accessible) source control system.
我设立 HTTP://teamcity.$c$cbetter.com 获得的所以我没有对服务器的物理访问。我希望这将让我这样上传文件的功能,但无法找到的那种东西。
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的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!