TFS 2008 门控签入构建
我在 TFS 2008 中有一个构建,每次签入都会触发,我需要的是以下内容
- 如果开发人员签入的源代码有任何错误,则不应签入代码更改
- 如果任何测试失败测试项目,则不应签入代码更改
- 如果构建脚本因任何原因失败,则不应签入代码更改
我有以下查询
- 是否 Buddybuild 解决了这个问题吗?
- 我运行一些单元测试作为我的构建脚本的一部分(标准方式),但是当单元测试失败时,伙伴构建仍然签入代码?当测试失败或构建因任何原因失败时,如何确保不应用签入?我可以设置一个变量来确保伙伴构建不会签入代码吗?查看好友构建目标文件后,似乎将 $(CheckInOnBuddyBuildSuccess) 设置为 false 就可以了?这是正确的方法吗?
等待
纳比尔
I have a build in TFS 2008 that gets triggered for every check-in, and what I need is following
- If the source code checkedin by the developers has any errors, then the code changes should not be checked in
- If any of the tests fails in the test project, then the code changes should not be checked in
- If the build script fails for ny reason then then the code changes should not be checked in
I have the following queries
- Does the Buddybuild solves this problem?
- I run some unit tests as part of my build script (standard way), however when the unit tests fails, the buddy build still checkin the code ? How can i make sure that the checkins are not applied when the test fails or if the build fails for any reason? Is there a variable that I can set to make sure that the buddy build does not checkin the code? After looking at the buddy build targets file, it seems like setting $(CheckInOnBuddyBuildSuccess) to false would do it ? Is this the correct approach?
Awaiting
Nabeel
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://buddybuild.codeplex.com/discussions/251517
http://buddybuild.codeplex.com/discussions/251517