3

I have just started playing with TeamCity and its great. Now I got it to deploy to my staging server after a commit so I always know I have the latest version running there. ( The idea was borrowed from: http://www.agileatwork.com/automatic-deployment-from-teamcity-using-webdeploy/ )

But as the site generates some files which I dont want to wipe out on every publish I found the parameter to MSDeploy

-enableRule:DoNotDeleteRule

But how do I append this to MSBuild command

MSBuild.exe MvcApplication1.sln 
 /p:Configuration=Debug 
 /p:OutputPath=bin 
 /p:DeployOnBuild=True 
 /p:DeployTarget=MSDeployPublish 
 /p:MsDeployServiceUrl=https://ss-iis:8172/MSDeploy.axd 
 /p:username=user
 /p:password=pass
 /p:AllowUntrustedCertificate=True 
 /p:DeployIisAppPath=foo.bar.tld 
 /p:MSDeployPublishMethod=WMSVC 

Can this be done?

Or is there are a more fancy way of doing automatic web deployments from TeamCity?

0

1 Answer 1

10

It might be /p:SkipExtraFilesOnServer=true that you want.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.