How to force to run 2 dependent build configurations on the same agent?

Hi,

With the following context:

TeamCity 4.0.1
Windows
Two builder agents on PC0001 and PC0002 (equivalent agents)

<Build configuration A> depend on <Build configuration B>:

Snapshot Dependencies:
     Depends on                          Dependency options

     Build configuration B               Do not run new build if there is a suitable one

                                           Only use successful builds from suitable  ones


I run <Build configuration A> with the following options:

     Agent:     PC0002
     Rebuild:   checked => enforce rebuilding of all dependencies

How to force Build <Build configuration B> to run on agent PC0002 (and not PC0001) ?

Thanks.

4 comments
Comment actions Permalink

I'm just getting started with Team City, but my impression is that you are supposed to use Artifact Dependencies to eliminate the need to run two builds on the same agent.  Using Artifact Dependencies, TeamCity will ship the build outputs from the first build to which ever agent the dependent is going to run on, in whatever directory you like.

0
Comment actions Permalink

Hi Russel,

thanks for your help.
I'm a beginner and your answer gave me several ideas to control build configurations.
But now, I think the only way to solve this problem is by using the tab "compatible configurations" of agent and the option "Run selected configurations only".

Thanks

0
Comment actions Permalink

Hi Pavel,

link proposed is very interesting.
Now, I think the only way to solve this problem is by using the tab "compatible configurations" of agent and the option "Run selected configurations only".

Thanks

0

Please sign in to leave a comment.