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

Auto removal of quotes from MSBuild options resulting in errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.8
    • 5.6.0
    • Windows
    • None

    Description

      During the specification of the build task we can specify something of the nature:

      /t:Release /p:BuildVersion="1.0.0.${bamboo.buildNumber}" /p:ProductsToRelease="JIRA;Bamboo;Fisheye"

      During execution of the task, Bamboo takes off the quotes around the property value which cause the build to fail because the semicolon in this case are used as property separator and hence the remaining part will be an invalid expression as reproetd in the microsoft KB article at http://msdn.microsoft.com/en-us/library/xx2ke5d2%28v=vs.80%29.aspx. Here is a sample of the build log:

      MSBUILD : error MSB1006: Property is not valid.
      

      If the quotes were not removed, all the three options will be considered as values of the property ProductsToRelease

      Attachments

        Issue Links

          Activity

            People

              pwatson paulwatson (Inactive)
              smaiyaki Sultan Maiyaki (Inactive)
              Votes:
              20 Vote for this issue
              Watchers:
              34 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: