我想使用msdeploy.exe在竹上進行部署。如何逃避竹命令任務中的空白空間
我配置的命令在代理 運行msdeploy.exe,並嘗試以參數運行它:
-verb:sync -source:contentPath="${bamboo.build.working.directory}" -dest:contentPath="Default Web Site/application-name",ComputerName="http://server/MSDeployAgentService",userName=user-name,password=password -verbose
該命令從我的本地CMD效果很好。
然而,在竹竿我得到了一個錯誤:
Unrecognized argument '"-dest:contentPath="Default'. All arguments must begin with "-" It suggests that treat "Web.." as a second parameter because of an empty space.
我試過的東西不多,但無一成功:
- Encode with %20
- "Default Web Site/application-name" -> "Default%20Web%20Site/application-name"
Result - Default%20Web%20Site doesn't exist
This works when I were using msbuild.- Escape with ^
- ^"Default Web Site/application-name^"
Result: "Unrecognized argument..."- Using single quotes '
- 'Default Web Site/application-name'
Result: "Unrecognized argument..."
竹單證說,使用:「你想傳遞給參數命令,其中有空格的參數必須被引用「 但是我已經引用了我的參數。