Trigger subsequent build once after multiple parallel builds in TeamCity

前端 未结 1 363
梦毁少年i
梦毁少年i 2020-12-30 14:14

We have over 150 projects which I have gathered together, reconfigured and optimised into multiple TeamCity configurations, with multiple build agents, to try to improve our

相关标签:
1条回答
  • 2020-12-30 14:43

    I'm new to TeamCity, but I believe that this is what you need:

    • A: no triggers or dependencies
    • B and C: no triggers, snapshot dependecies on A
    • Collate: VCS trigger, snapshot dependency on B and C

    With that setup, a VCS single push will result in:

    • exactly one build of A, B, C and Collate
    • A built before B and C
    • B and C built before Collate
    • all built from the same point in VCS

    If you want to pass artifacts down the chain then you will need to define artifact dependencies as well.

    If the different builds use different VCS repositories, then you still should not set VCS triggers on A, B and C; instead you set the “Trigger on changes in snapshot dependencies” option on the VCS trigger for Collate.

    0 讨论(0)
提交回复
热议问题