Team Build 在不同的 TFS 项目中构建解决方案
我们正在使用 TFS2008 和 TeamBuid 来构建我们的产品。我在 TeamProjectAA 中有 SolutionAA,它使用对已签入 TeamProjectAA 的已编译库 (SolutionBB) 的文件引用。现在这工作正常。现在,该库的源代码已在 TeamProjectBB 中检查。当我需要使用 TeamBuild 进行完整构建时,问题就出现了。我有一个 SolutionAA 的构建项目,但我需要编译 SolutionBB 并且版本正确,以便它可以与我们的安装一起分发。
有没有办法将两个 TeamBuild 链接在一起?或者我可以从另一个 TFS 项目的另一个 TFS 项目构建解决方案吗?
We are using TFS2008 and TeamBuid to build our product. I have SolutionAA in TeamProjectAA that uses a file reference to a compiled library (SolutionBB) that is checked in to TeamProjectAA. Now this works fine. Now the source code to the library is checked in TeamProjectBB. The problem arises when I need to due a full build using TeamBuild. I have a build project for SolutionAA but I need to compile SolutionBB and version is correctly so it can be distributed with our install.
Is there a way to chain two TeamBuilds together? Or can I build a solution from another TFS project from another TFS project?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请参阅这篇文章 (http://bit.ly/tfschaining),其中包含一个示例自定义任务,该任务可以对建造。
您的完整构建可以通过运行构建 AA 开始,然后对构建 BB 进行排队。
不过,我建议您为依赖项获得更好的版本控制方案。您正在运行 AA,就好像它是一个独立项目一样,并且应该在 BB 中将其输出视为独立项目。考虑从 AA 手动拉取,因为它适合您在 BB 上的状态。这样 BB 就可以进行中间构建,并且 BB 仅在准备好接受 AA 中的更改时才能拉动。
See this post (http://bit.ly/tfschaining) which contains an example Custom Task which can queue a build.
Your full build can start by running build AA and then queue build BB.
I would suggest, though, that you get a better versioning scheme for your dependencies. You are running AA as if it is an independent project and should treat it's output as such in BB. Consider pulling manually from AA as you it suites your status on BB. That way BB can have intermediate builds and BB can only pull when its ready to take on the changes in AA.
我建议将已编译的库作为 SolutionBB 的 TFS 构建的一部分进行检查。然后,将该编译库的位置包含在 SolutionAA 的 TFS 构建的工作区映射中,并使用持续集成触发器对其进行配置。每当在版本控制中修改 SolutionBB 的编译库时,就会触发 SolutionAA 的构建。
I'd suggest checking in the compiled library as part of the TFS Build for SolutionBB. Then, include the location of that compiled library in your workspace mapping for the TFS Build of SolutionAA and configure it with a continuous integration trigger. The build of SolutionAA will get triggered whenever the compiled library for SolutionBB is modified in version control.