I started migrating from CC.NET to TeamCity and its been a great exp so far. TeamCity simply rocks. We are using MSBuild as build runner. I have a few questions and appreciate any help in this regard.
(1) How would I know what trigger prompted a build ? is it Manual, Nightly etc ? Does TC passes an property to MSBuild with this info ?(Something like $(CCNetRequestSource) in CC.NET).
(2) Is there a way to create an affinity between a build configuration and a build agent so that the build configuration always run on one specific build agent ? I am currently defining an env variable in Agent Requirements of the Build Configuration and I am making sure that only my build agent has this defined. It works but would like to know if TC server provides feature ?