TFS 2010 build and deployment automation customization with existing document on target server

Unanswered TFS 2010 build and deployment automation customization with existing document on target server

  • Monday, February 20, 2012 12:50 PM
     
     

    I am trying to figure out how to configure and/or customize TFS NOT to over-write some of the folders on the tartget site when deploying to an existing web application.

    Here is the scenario:

    I have three servers, Dev, staging and production. The production site of my application containts documents uploaded by users and i would like to leave these folders intact when i deploy to production. I dont have a problem with TFS overwitting the folders on the Staging and dev.

    How would i go about doing this? Do i need to add something to the build arguments or i have to customize the entire build process?

All Replies

  • Tuesday, February 21, 2012 7:18 AM
     
     

    How are you deploying the wep application from you build? Are you using WebDeploy or are you just copying the files?

    /Jakob


    Microsoft Community Contributor Award 2011
    Visual Studio ALM Ranger
    Blog: http://geekswithblogs.net/jakob
    Twitter: http://twitter.com/jakobehn

  • Tuesday, February 21, 2012 11:36 AM
     
     

    I am using webdeploy like so;

    /p:DeployOnBuild=True /p:Configuration=Release /p:DeployTarget=MsDeployPublish /p:CreatePackageOnPublish=True /p:MsDeployPublishMethod=WMSVC /p:MsDeployServiceUrl=https://myproductionserver:8172/MsDeploy.axd  /p:AllowUntrustedCertificate=true /p:DeployIisAppPath=MyLiveSite/p:username=AgentAccount /p:password=password

    which all works as expected except cleaning up the target site folder before writing new version of the file. Thats the part i need to change

  • Sunday, February 26, 2012 8:40 AM
     
     
    Does anybody know how to do this. Im still trying to figure this out.