3

我想用相同的 SVN 版本运行几个 Team-City 构建项目。这可能吗?

4

3 回答 3

3

查看快照依赖项。如果构建配置 A 对 B 具有快照依赖关系,那么当 A 被触发时 B 也将被触发,并且两者都将在相同的源上运行。

如果 A 和 B 具有相同的 VCS 根,则这些配置的构建将构建在相同的修订版上。如果 A 和 B 具有不同的 VCS 根,则 TeamCity 将在同一时刻获取源。

于 2010-01-17T00:12:53.883 回答
0

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:

  1. Set Build 3 to have a snapshot dependency on Build 2.
  2. Set Build 2 to have a snapshot dependency on Build 1.

Now you'll have Build 1 -> Build 2 -> Build 3.

This does given you neat charts: enter image description here

于 2012-04-06T18:50:13.920 回答
0

当然,创建几个构建配置,并将它们设置为触发对共享存储库根的 SVN 修订更改。

您也可以让一个构建触发另一个。

于 2009-12-14T11:17:28.830 回答