How to deploy after a build with TeamCity?

前端 未结 5 1414
忘掉有多难
忘掉有多难 2021-01-29 18:32

I\'m setting up TeamCity as my build server.

I have my project set up, it is updating correctly from subversion, and building ok.

So what\'s next?

Ide

5条回答
  •  灰色年华
    2021-01-29 18:40

    This article explains how to call Microsoft's WebDeploy tool from TeamCity to deploy a web application to a remote web server. I've been using it to deploy to a test web server and run selenium tests on check-in.

    http://www.mikevalenty.com/automatic-deployment-from-teamcity-using-webdeploy/

    1. Install WebDeploy
    2. Enable Web config transforms
    3. Configure TeamCity BuildRunner
    4. Configure TeamCity Build Dependencies

    The MSBuild arguments that worked for my application were:

    /p:Configuration=QA  
    /p:OutputPath=bin  
    /p:DeployOnBuild=True  
    /p:DeployTarget=MSDeployPublish  
    /p:MsDeployServiceUrl=https://myserver:8172/msdeploy.axd  
    /p:username=myusername  
    /p:password=mypassword  
    /p:AllowUntrustedCertificate=True  
    /p:DeployIisAppPath=ci  
    /p:MSDeployPublishMethod=WMSVC
    

提交回复
热议问题