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

Auto removal of quotes from MSBuild options resulting in errors

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

      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

            [BAM-11561] Auto removal of quotes from MSBuild options resulting in errors

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1441861 ] New: JAC Bug Workflow v3 [ 3382999 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1418204 ] New: Bamboo Workflow 2016 v1 - Restricted [ 1441861 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 608668 ] New: Bamboo Workflow 2016 v1 [ 1418204 ]
            Ranjith Ezhilmaran (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 81941 ] New: This issue links to "Page (Extranet)" [ 81941 ]
            Paul Kelcey (Inactive) made changes -
            Remote Link New: This issue links to "BDEV-8861 (Atlassian JIRA Extranet - Special Projects)" [ 102649 ]
            Deric Lee (Inactive) made changes -
            Link New: This issue relates to BAM-15879 [ BAM-15879 ]
            Cintia Calvo (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 81941 ] New: This issue links to "Page (Extranet)" [ 81941 ]
            Cintia Calvo (Inactive) made changes -
            Remote Link Original: This issue links to "Page (Extranet)" [ 81941 ] New: This issue links to "Page (Extranet)" [ 81941 ]
            Cintia Calvo (Inactive) made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 95926 ]
            Cintia Calvo (Inactive) made changes -
            Remote Link New: This issue links to "Page (Extranet)" [ 95922 ]

              pwatson paulwatson (Inactive)
              smaiyaki Sultan Maiyaki (Inactive)
              Affected customers:
              20 This affects my team
              Watchers:
              34 Start watching this issue

                Created:
                Updated:
                Resolved: