How do I improve teamcity build performance?

青春壹個敷衍的年華 提交于 2019-12-03 16:56:29

问题


I have the following steps for my project:

  1. build
  2. unit tests
  3. test coverage
  4. duplicates finder
  5. fx cop

Is there any way to make TeamCity execute 2-5 steps in parallel? Can I use several build agents for that?


回答1:


Yes. Assuming you have at least four build agents, you can do the following:

  1. Under MyProject, define 5 build configurations (Build, Unit Tests, etc).
  2. Edit build configurations 2-5, and define a new Trigger in Build Triggering (Choose Finish Build Trigger, and set it to run after a successful run of Build.
  3. Edit build configurations 2-5, and define a new Artifact dependency in Dependencies (Choose Add new artifact dependency, and choose the output of your Build configuration.

As long as you have agents available, the build configurations will run after a successful Build, each on its own agent.

On a side note, without knowing your specific project, i'd recommend doing that only if the whole process takes a really long time (lets say more than ~15 minutes), and you can spare those machines (virtual or not).



来源:https://stackoverflow.com/questions/8970603/how-do-i-improve-teamcity-build-performance

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