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

"Options" input box for MSBuild Task of Bamboo cannot handle parameters with multiple values which contain space symbol

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • 5.6.0
    • 5.0
    • Windows

    Description

      In Bamboo, when I create a MSBuild Task,

      in "Options" input box, I wanted to add a msbuild property "ReferencePath" and it contained 2 paths:

      C:\Program Files (x86)\WiX Toolset v3.7\SDK

      C:\Program Files (x86)\DGIT\bin

      So in the options, the input was"

      /p:ReferencePath="C:\Program Files (x86)\WiX Toolset v3.7\SDK;C:\Program Files (x86)\DGIT\bin"

      This would cause a build error because of "MSBUILD : error MSB1006: Property is not valid.". I guess the reason for this is:

      When Bamboo handles this input box, it would delete all the quotation marks from the input.

      The workaround would be (Cheating):

      In the "Project File", the Bamboo takes whatever is in the box, wrap it in a pair of quotation marks. So we can inject code into it by adding another pair of quotation marks:

      DGiT.Build.Wix.CA.sln" /p:ReferencePath="C:\Program Files (x86)\WiX Toolset v3.7\SDK;C:\Program Files (x86)\DGIT\bin

      Attachments

        Issue Links

          Activity

            People

              kbrazulewicz Krystian Brazulewicz
              b20f380c51b1 Daming Fu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: