teamcity 运行多个构建项目并进行修订
我想运行多个具有相同 SVN 修订版的 Team-City 构建项目。这可能吗?
I would like to run several Team-City build projects with the same SVN-revision. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
查看快照依赖关系。如果构建配置 A 对 B 具有快照依赖性,那么当触发 A 时,B 也会被触发,并且两者都将在相同的源上运行。
如果 A 和 B 具有相同的 VCS 根,那么这些配置的构建将基于相同的修订版本构建。如果 A 和 B 具有不同的 VCS 根,则 TeamCity 将在同一时刻获取源。
Take a look at snapshot dependencies. If build configuration A has a snapshot dependency on B then when A is triggered B will be triggered too and both will run on the same sources.
If A and B have same VCS roots then builds of these configurations will be built on the same revision. If A and B have different VCS roots, then TeamCity will take sources on the same moment of time.
当然,创建多个构建配置,并将它们设置为在共享存储库根的 SVN 修订更改时触发。
您还可以让一个构建触发另一个构建。
Sure, create several build configurations, and set them to trigger on SVN revision changes to a shared repository root.
You can also have one build trigger another.
快照构建允许这样做,并重用构建。因此,如果您有 5 个步骤,并且上周运行了步骤 1-4,则运行步骤 5 不需要再次运行步骤 1-4。相反,如果之前没有运行过步骤 5,则运行步骤 5 将运行 1-5,并且所有步骤都将使用相同的签出修订号。
对于包含 3 个步骤的简单情况,只需:
现在您将拥有 Build 1 -> 。构建 2 ->构建 3。
这确实为您提供了整洁的图表:
SnapShot builds allow this, and reuse builds. So, if you have 5 steps, and steps 1-4 were run last week, running step 5 won't require running 1-4 again. Conversely, running step 5 would run 1-5 if none of them had been run before, and all will use the same checkout revision numbers.
For a simple case of 3 steps, just:
Now you'll have Build 1 -> Build 2 -> Build 3.
This does given you neat charts: