I just started playing with TeamCity and great. Now I got it for deployment on my intermediate server after commit, so I always know that I have the latest version installed. (The idea was taken from: http://www.agileatwork.com/automatic-deployment-from-teamcity-using-webdeploy/ )
But since the site generates some files that I don’t want to destroy every time I publish, I found a parameter for MSDeploy
-enableRule:DoNotDeleteRule
But how to add this to the MSBuild team
MSBuild.exe MvcApplication1.sln
/p:Configuration=Debug
/p:OutputPath=bin
/p:DeployOnBuild=True
/p:DeployTarget=MSDeployPublish
/p:MsDeployServiceUrl=https:
/p:username=user
/p:password=pass
/p:AllowUntrustedCertificate=True
/p:DeployIisAppPath=foo.bar.tld
/p:MSDeployPublishMethod=WMSVC
Can this be done?
Or is there a more convenient way to automatically deploy TeamCity web applications?
source
share