问题
I'm running on TeamCity 6.0.4. I have two projects, Foo and Bar, each producing artifacts. Those artifacts are consumed by Repo, and then an artifact produced by Repo is consumed by Leaf.
My problem is that Bar depends on Foo. So when Foo builds, the following events happen:
- Foo builds. This triggers both Bar and Repo.
- Bar builds. This triggers Repo to build again.
- Leaf sees two Repo builds, which means Leaf builds twice.
How should I fix this to prevent the unnecessary (and inappropriate) build of Leaf?
Note: Having Foo not trigger Repo may solve the problem temporarily, but when we introduce Baz (which also depends on Foo), then we have the problem again:
- Foo builds. This triggers Bar and Baz.
- Bar builds. This triggers Repo to build.
- Baz builds. This triggers Repo to build.
- Leaf sees two Repo builds, which means Leaf builds twice.
Baz is forthcoming.
Suggestions?
来源:https://stackoverflow.com/questions/16482535/prevent-excessive-builds-in-teamcity