crauscher
crauscher

Reputation: 6618

teamcity run several build projects with on revision

I would like to run several Team-City build projects with the same SVN-revision. Is this possible?

Upvotes: 3

Views: 393

Answers (3)

Joseph Lust
Joseph Lust

Reputation: 19985

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

Upvotes: 0

Pavel Sher
Pavel Sher

Reputation: 2211

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.

Upvotes: 3

sylvanaar
sylvanaar

Reputation: 8216

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.

Upvotes: 0

Related Questions