Richard
Richard

Reputation: 1739

TeamCity and Build Params

I've got a project in TeamCity, and I want to be able to do two different builds in one go (i.e. two different build steps for the same project).

My MSBuild script takes a 'Configuration' parameter, so on the command line, I can pass in 'Test' or 'Production' and it will build either version for me.

However, the only way I've managed to get this working in TeamCity is to set a Build Parameter, which is global to the entire project (i.e. env.Configuration='Test').

Is there a way to pass different values of the 'Configuration' parameter on a per-build-step basis? I've run into problems before when I tried this e.g. with the 'Command Line Parameters' setting in TeamCity.

Thanks

Upvotes: 4

Views: 639

Answers (1)

manojlds
manojlds

Reputation: 301147

You are looking at splitting your build configuration into multiple build configurations and having trigger dependencies between them.

Upvotes: 2

Related Questions