Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-7265

Bamboo removes quotes from builder Argument field

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.1.4, 3.2 M1, 3.2
    • None
    • None
    • None

      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).

            pstefaniak PiotrA
            rbattaglin Renan Battaglin
            Votes:
            10 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: