One-time deployment using TFS Build 2010

Let me start with my site architecture. I have 2 web servers (state), 2 web servers (external user), 2 application servers (wcf) and a database server. I have more than 5 environments (which will have the appropriate configuration).

Using Team Build 2010 I generate packages in a shared folder. This does not include an incremental database script (schema changes from the latest build).

I am currently taking these packages to remote servers and deploying them using MSBUILD.

Now i need

  • One deployment approach for this architecture. (idea)

  • MSBUILD commands that I could use (if possible, point me to the full list)

  • How to generate an incremental database script and a way to update the database as part of automation (I have a Database project in my solution, I am currently doing a schema comparison after each build)

Basically I think that BuildProcesstemplate.xaml should be edited. Leadership in this approach as well.

Things I talked about (not useful in my case)

  • Discussion of PDC 09 by Vishal R. Joshi
  • Continuous Deployment with TFS 2010 Build Agent (Hakan Forss Blog)
  • The website deployment made it awesome: if you use XCopy, you are doing it wrong (Scott Hanselman).

Most of the posts in googling and Stack showed me help with a simple script. Put your idea that you used or used in your projects.

Thank you very much.

+4
source share
2 answers

You can add MSBuild arguments to the TFS assembly to force MsDeploy ( http://dotmac.rationalmind.net/2011/03/continuous-integration-with-tfs/ ).

However, it looks like this works well (from what I can say) in simple examples when you:

For a more advanced deployment, I would suggest looking at the addon for TFS.

Or Tfs Deployer (OpenSource - http://tfsdeployer.codeplex.com/ ), where you just configure your build to set build quality, which runs powershell scripts to run msdeploy and can be either complicated or simple as you like.

Or wait for Octopus (Commercial - http://octopusdeploy.com/ ) to become available and find out something about it.

+2
source

The combination of MSbuild scripts and PS tools will do the job.

0
source

Source: https://habr.com/ru/post/1382601/


All Articles