【发布时间】:2017-06-01 19:52:30
【问题描述】:
我在 Team Services 构建中有 2 个 Azure 应用服务部署步骤,它们具有相同的订阅详细信息。唯一的区别是它们针对不同的虚拟应用程序 - 失败的应用程序包含一个 é 字符,这可能是原因吗?这里是步骤输出:
2017-01-17T16:04:22.8323742Z 8570d8e4-b732-4c45-87c5-619fe9343427 存在真实
2017-01-17T16:04:24.5778681Z 获得 Azure 应用服务的连接详细信息:'foo'
2017-01-17T16:04:24.6088690Z 运行命令:“C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe”-verb:getParameters -source:package="C:\a\1 \a\Foo.zip" > "C:\a\1\s\parameter.xml"
2017-01-17T16:04:25.4027522Z 运行命令:@echo off
2017-01-17T16:04:25.4027522Z "C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package="C:\a\1\a\ Foo.zip" -dest:auto,ComputerName='https://foo.scm.azurewebsites.net:443/msdeploy.axd?site=foo',UserName='********',Password='********',AuthType='Basic' -setParam :name='IIS Web 应用程序名称',value='foo/bar-é' -userAgent:VSTS_foo_build_154_744 2>error.txt
2017-01-17T16:04:25.4027522Z if %errorlevel% neq 0 exit /b %errorlevel%
2017-01-17T16:04:25.4067519Z [命令]C:\Windows\system32\cmd.exe /C C:\a\1\s\msDeployCommand.bat
2017-01-17T16:04:25.4157662Z 'C:\Program' 未被识别为内部或外部命令,
2017-01-17T16:04:25.4167533Z 可运行的程序或批处理文件。
2017-01-17T16:04:25.4207534Z ##[错误]未能部署应用服务。
2017-01-17T16:04:29.2496923Z ##[error]Error: Error: C:\Windows\system32\cmd.exe failed with return code: 9009
2017-01-17T16:04:29.2576899Z ##[section]完成:Azure 应用服务部署:foo-dev-global
这几乎就像 Powershell 命令本身被破坏了,我猜是特殊字符。
【问题讨论】:
-
您能否运行将变量“system.debug”设置为“true”的构建并共享日志?
标签: azure msbuild azure-devops azure-web-app-service msbuild-task