Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-13856

Jenkins wraps square and curly bracket string parameter values in quotation marks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • core
    • None
    • 1.424.6 on Windows Server 2008 R2
      1.465 on Windows 7

      String parameters that start and end with a matched pair of square or angle brackets are wrapped in double quotation marks. This impacts use of JSON as actual argument values.

      This behavior occurs outside of job execution: Default parameter values are changed while saving, with the double quotation marks present on subsequent access to the Configure page as well as the Build Now parameters page.

      Example

      This results for example in a value being changed from

      [foo]
      

      to

      "[foo]"
      

      Affected argument values have the following formats:

      []
      {}
      [foo]
      {foo}
      [foo bar]
      {foo {} bar}
      

      etc.

      The following are not affected by this behavior:

      ()
      <>
      [}
      {]
       {}
       []
      [foo}
      {foo]
      foo[bar]
      foo[bar
      [foo]bar
      

      Workaround

      Add a leading space character

            Unassigned Unassigned
            danielbeck Daniel Beck
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: