Andrew Cetinic
Andrew Cetinic

Reputation: 2835

TFS 2010 custom build step

I am playing with TFS 2010, and am trying to setup a build process that will have some custom steps.

These include things like, stopping/starting IIS, search and replace files etc... across environments.

I have tried to look for examples online and have not found anything clear and meaningful on how to just run a script or something over the source files. Looking at the default build process template (DefaultTemplate.xml) I cant make much sense of it.

How do I go about doing this ?

Upvotes: 3

Views: 1999

Answers (2)

Richard Banks
Richard Banks

Reputation: 12546

For info on customising the TFS2010 workflow build templates have a look at Ewald Hoffman's series. Start with Part 1 (archived here).

I should also mention that since it looks like you're doing deployment then you may want to break deployment automation away from build automation.

Upvotes: 6

Zephan Schroeder
Zephan Schroeder

Reputation: 695

This is almost exactly what I'd say for this question (Split build and deplyment stages, investigate TFSDeployer). One additional element is more generic - for deployment tasks you can't find an easy integrated tool you should create a custom deployment script. You can call any script by adding an "InvokeProcess" step in your Build workflow. TFSDeployer also has locations where you can insert custom PowerShell Scripts. (If you don't like PowerShell you can have PowerShell or "InvokeProcess" call a different script engine.)

Upvotes: 0

Related Questions