1

All documentation on build chains on the TeamCity and also their blog postings deals with simples setup that don't expose the more complex setups that you may encounter in real life which brings me to the following question.

I have the need for a few more complex setups: A--\ /--D--\ C F B--/ \--E--/ Ideally A & B and D & E would run concurrently on different build nodes. A--\C/--E B--/D\--F In the above A & B run concurrent, as do C & D but C & D are only triggered if both A & B pass, the same goes for E & F they run concurrent, but only if both C & D pass. /-- B --\ A D \-- C --/ Ideally B & C should run in parallel on different nodes.

However TeamCity refuses to do this and all builds are un sequentially on a single build node which is highly annoying because it blows build times out of the water.

I've tried various combinations of Snapshot dependencies and Finish build trigger to no avail, TeamCity refuses to run any steps parallel.

4

2 回答 2

2

TC 10.x 中的快照依赖项在模板和构建配置之间的工作方式略有不同。

鉴于此示例配置,在 D 上触发构建将导致 2 个不同的执行树。 /-- B --\ A D \-- C --/

如果在模板上定义了快照依赖项,则 TeamCity 将按顺序执行所有构建,例如。A B C D。

如果在构建配置上定义了快照依赖项,则 TeamCity 将作为 A 执行构建,然后并行执行 B 和 C,最后执行 D。

于 2016-12-07T00:37:49.827 回答
0

您应该删除所有“已完成构建”触发器。它们不需要运行快照依赖链。只需在链的最后配置(F 或 D)中启动构建,所有其他构建将根据重用配置添加到队列中。

于 2016-11-07T14:56:54.750 回答