【发布时间】:2013-11-26 14:53:26
【问题描述】:
我在 Teamcity 的构建配置中的 vsproject 上有这个标准的 msbuild 部署方法
/P:DeployIisAppPath=%env.IISSiteName%
/P:Configuration=%env.configuration%
/P:DeployOnBuild=True
/P:DeployTarget=MSDeployPublish
/P:MsDeployServiceUrl=https://%env.TargetServer%/MsDeploy.axd
/P:AllowUntrustedCertificate=True
/P:MSDeployPublishMethod=Wmsvc
/P:CreatePackageOnPublish=True
/P:UserName=%env.domainUser%
/P:Password=%env.domainPassword%
当目标服务器有点忙(被另一个进程错误使用)时,这偶尔会失败:
[VSMSDeploy] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets(4377, 5): Web deployment task failed. ((26.11.2013 11:55:54) An error occurred when the request was processed on the remote computer.)
(26.11.2013 11:55:54) An error occurred when the request was processed on the remote computer.
An error was encountered when processing operation 'Create File' on 'PersonInfo.ascx'.
The error code was 0x80070020.
The process cannot access 'C:\*****\PersonInfo.ascx' because it is being used by another process.
当我在“办公时间”(0800-1600) 部署时,此错误更频繁。
我可以做些什么来确保此部署不会失败?
【问题讨论】:
标签: msbuild teamcity msdeploy webdeploy