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

Backslash cannot be used in regular expressions for capability requirements

    XMLWordPrintable

Details

    Description

      Summary

      The backslash character (), widely used in regular expressions, cannot be used for capabilities. When entering an expression that contains the character, such as windows\d (for the string windows followed by a digit) and clicking Add, the following error is returned: This entry cannot contain the character \.

      Environment

      • Bamboo 5.9.7 or 5.10

      Steps to Reproduce

      1. Log into Bamboo
      2. Click on a plan to edit
      3. On the top right click Actions and select Configure plan
      4. Click on a job
      5. Click the Requirements tab
      6. From the Required capability dropdown select any value
      7. From the dropdown to the right select matches
      8. In the text field that appears enter windows\d
      9. Click Add

      Expected Results

      The capability is added

      Actual Results

      The following error is displayed: This entry cannot contain the character \.

      Workaround

      There is no known workaround

      Attachments

        Activity

          People

            mgardias Marcin Gardias
            cglockner Christian Glockner
            Votes:
            5 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: