1
votes

I am trying to get my TFS server to build and then publish my application - building it is not a problem but deploying it yields not results.

Quick review of my build config:

  • Workspace: Active $/Path/to/solution Build Agent Folder: $(SourceDir)
  • Process: Build Any CPU | Staging
    • Ms Build args: /p:DeployOnBuild=True /p:DeployTarget=MSDeployPublish /p:MsDeployServiceUrl=https://{host}:8172/msdeploy.axd /p:MsDeployPublishMethod=WMSVC /p:CreatePackageOnPublish=True /p:username= /p:AllowUntrustedCertificate=True

The build agent is using a service account which I have defined as a IIS Manager on the site. Within the project properties I have defined the site name within the Staging configuration (I have been following this vid: https://www.youtube.com/watch?v=oxJUhIQfzlA)

Is the problem I'm having around the user authentication and I should specify the username and password within the MsBuild Args?

Within the MSBuild log, it makes no mention of publishing the application in anyway. Where am I going wrong?

Edit: In an attempt to get a resolution to my problem, I have included some screenshots of the build config - a username and password has been defined with admin privileges on the server

General TabTriggerWorkspaceBuild DefaultsProcess

2
Actually, having asked the question I thought I would try it out and specify the username and password within the Build arguments - no joy there... - Matt

2 Answers

3
votes

Figured it out, needed to install Web Deploy v3 So glad I got to the bottom of that! If you have also stumbled across this post, you may also find this post of some use.

1
votes

Try putting just the server name in the MsDeployServiceUrl param. That is the way mine are and they work fine. Everything else is the same as yours.

/p:DeployOnBuild=True /p:DeployTarget=MSDeployPublish /p:MSDeployPublishMethod=WMSVC /p:AllowUntrustedCertificate=True /p:CreatePackageOnPublish=true /p:DeployIISAppPath="Default Web Site/xyz" /p:MsDeployServiceUrl="webservername"  /p:username="def" /p:password="ghi"