msdeploy.exeを使用してbambooにデプロイメントを行いたいとします。bambooコマンドタスクの空きスペースをエスケープする方法
私は、エージェント 上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..."
竹のドキュメンテーションを使用するように言う:「あなたがしたい引数をに渡します空白を含む引数は引用符で囲まなければなりません " しかし私は既に私のパラメータを引用しました。