Under Configuration -> Builder -> Builder Configuration -> Argument, Bamboo will remove any quotes that are not in the beginning or at the end of the argument string. Examples:
If the following is set in the Argument field:
/project:"Master Project"
Bamboo runs this:
Starting to build 'TheProjectName - BuildPlanName' ... running command line: /bin/sh /test/test.bat "/project:Master Project" ... in : /Users/rbattaglin/SANDBOX/bamboo262-Home/xml-data/build-dir/PROJKEY-BUILDPLANKEY
If the following is set in the Argument field:
/project:\"Master Project\"
Bamboo runs this:
Starting to build 'TheProjectName - BuildPlanName' ... running command line: /bin/sh /test/test.bat "/project:\Master Project\" ... in : /Users/rbattaglin/SANDBOX/bamboo262-Home/xml-data/build-dir/PROJKEY-BUILDPLANKEY
A workaround is to call the full command, builder and it's arguments from the another script (that would be called by Bamboo).
- is related to
-
BAM-8745 MSBuild Task is not passing arguments correctly
- Closed
-
BAM-9234 Maven arguments with spaces confuse Windows build agents
- Closed
-
BAM-10740 Bamboo does not respect the quotes (") in the command line arguments on windows ( at least for the ANT task)
- Gathering Impact
- relates to
-
BAM-9502 Document and make public how arguments with space can be quoted in Task fields
- Closed