I have the following steps for my project:
- build
- unit tests
- test coverage
- duplicates finder
- fx cop
Is there any way to make TeamCity execute 2-5 steps in parallel? Can I use several build agents for that?
I have the following steps for my project:
Is there any way to make TeamCity execute 2-5 steps in parallel? Can I use several build agents for that?
Yes. Assuming you have at least four build agents, you can do the following:
MyProject
, define 5 build configurations (Build
,Unit Tests
, etc).Trigger
inBuild Triggering
(ChooseFinish Build Trigger
, and set it to run after a successful run ofBuild
.Artifact dependency
inDependencies
(ChooseAdd new artifact dependency
, and choose the output of yourBuild
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).