Paul Mendoza
Paul Mendoza

Reputation: 5787

TeamCity - How can I make a parameter for the build to not run one of the steps?

I would like to make it so that a person can kick off a build but choose not to run the unit tests step of the build. My idea is the user would modify one of the configuration parameters when they click the little "..." button next to the "Run" button. It would be cool if they could pick the "True" or "False" from a drop down menu for the parameter. Not sure how to put a condition on the build step executing though.

Upvotes: 7

Views: 3244

Answers (2)

Orn Kristjansson
Orn Kristjansson

Reputation: 3485

You could have two different configurations, one that runs all and one that skips the unittests passing the config parameter. Not exactly what you asked but at least your users can pick which flavor they want to run.

Upvotes: 0

Greg Smith
Greg Smith

Reputation: 2469

It's not built into Teamcity, yet. There's an open job for it, but no indication of ETA.

Upvotes: 5

Related Questions