visual-studio - 带有 Git 的 TeamCity Visual Studio 插件

标签 visual-studio git teamcity

我们想使用 TeamCity 实现 CI。

我们使用 Git 进行源代码控制,并希望使用 TeamCity 的“预测试提交”或“个人构建”功能。

有人使用过 Teamcity 的 VS 插件吗?

据我所知,它只支持 Subversion,不支持 Git。

有人成功地使用了这个设置吗?

最佳答案

Pre-tested “Commits” using Git 中所述通过 JoergM ,您可以使用个人存储库模拟类似于 TeamCity6.x“个人在分支机构上构建”的解决方案:

JoergM's setup for personnal repo .

There is one central Git-repository that only contains pre-tested changes. I call this “Green Repository” because it should only contain changes that lead to green builds.
Every developer pulls from this repository but nobody is allowed to push to it.

Instead everybody has a personal repository (think fork if you were on GitHub). The CI Server watches those personal repositories. After a commit it starts the compile and test. If that was successful it pushes the changes to the Green Repository.

JoergM 补充道:

The question is whether we will continue using our own solution or switch to the new feature of Teamcity.
So far I can’t see any advantage of the Teamcity feature.
With our solution we are even more flexible in regard of branch design.

这种设置类似于我在“What is the cleverest use of source repository that you have ever seen?”中描述的设置。

关于visual-studio - 带有 Git 的 TeamCity Visual Studio 插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7174961/

相关文章:

visual-studio - 卸载 visual studio 2015 shell(已隔离)

node.js - 多设备混合应用程序中未指定 NodeJs 的路径

xcode - Git、XIB、 merge

teamcity - 如何向 %system.teamcity.auth.userId% 帐户授予额外权限?

.net - NUnit 3.2.1 + TeamCity : Could not load file or assembly 'nunit.framework'

teamcity - 如何在 TeamCity 中获取 PassedTestCount 和 FailedTestCount?

c# - 自动完成案例问题

javascript - 如何在 Visual Studio Code 中更改代码格式

git - 如何使现有 Git 存储库的一部分成为子模块

python - gcloud preview app deploy 每次在 python 项目中上传所有源代码文件需要很长时间