是否可以在 TFS 中实现预先测试的提交?
我对 TeamCity 中预测试提交的想法很感兴趣(即在允许签入之前验证它们不会破坏构建),我想知道是否有任何方法可以在 TFS 中实现这一点。 看起来 TeamCity 可以连接 TFS 版本控制作为后备存储,但我当然更喜欢免费的解决方案。
I'm intrigued by the idea in TeamCity of pre-testing commits (i.e. verifying they don't break the build before allowing check-in to occur) and I'm wondering if there is any way to implement this in TFS. It looks like TeamCity can interface to TFS version control as a backing store but of course I'd prefer a free solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 TFS 中,存在签入策略 您可以在客户端上执行代码,并且可以在允许签入发生之前验证签入。 然而 - 您所追求的听起来更像是“门控签入”的概念,其中在签入提交到主代码库之前尝试在中央构建服务器上进行构建。 查看 CodePlex 上的 BuddyBuild 项目,以在当前版本的 TFS 中添加该功能。
在 TFS 2010 中,门控签入构建将成为开箱即用的功能。
In TFS there is the notion of check-in policies where you can execute code on the client and that can validate check-ins before allowing them to occur. However - what you are after sounds more like the notion of a "Gated Check-in" where a build is attempted on a central build server before the check-in is committed to the main code base. Take a look at the BuddyBuild project on CodePlex to add that functionality in the current versions of TFS.
In TFS 2010, gated check-in builds will be a feature out of the box.