开发者

teamcity run several build projects with on revision

开发者 https://www.devze.com 2022-12-14 10:47 出处:网络
I would like to run several Team-City开发者_运维技巧 build projects with the same SVN-revision. Is this possible?Take a look at snapshot dependencies. If build configuration A has a snapshot dependenc

I would like to run several Team-City开发者_运维技巧 build projects with the same SVN-revision. Is this possible?


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.


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.


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:

teamcity run several build projects with on revision

0

精彩评论

暂无评论...
验证码 换一张
取 消