Prevent Excessive Builds in TeamCity

本小妞迷上赌 提交于 2019-12-12 03:52:49

问题


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:

  1. Foo builds. This triggers both Bar and Repo.
  2. Bar builds. This triggers Repo to build again.
  3. 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:

  1. Foo builds. This triggers Bar and Baz.
  2. Bar builds. This triggers Repo to build.
  3. Baz builds. This triggers Repo to build.
  4. Leaf sees two Repo builds, which means Leaf builds twice.

Baz is forthcoming.

Suggestions?

来源:https://stackoverflow.com/questions/16482535/prevent-excessive-builds-in-teamcity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!