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

Text parameters get converted to String

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I ran across a strange issue:

      • Create a new inheritance job
      • Add a text parameter with some text which includes newlines as default value
      • Save and then click on 'Build with Parameters'

      Then this text parameter has magically become a string parameter and thus lost the newlines.

      Is this a known issue and does anyone know a workaround?

      Jenkins 1.598
      
      java version "1.7.0_75"
      OpenJDK Runtime Environment (rhel-2.5.4.2.el7_0-x86_64 u75-b13)
      OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
      
      CentOS Linux release 7.0.1406 (Core)
      

        Attachments

          Activity

          Hide
          appid AppId Man added a comment -

          I couldn't manage to find the source of this bug, but I wrote a workaround which works for me.

          https://github.com/appidman/jenkins-inheritance-plugin/commit/cb39016b846821dcec21d06e1537aa1c06aa5163

          Show
          appid AppId Man added a comment - I couldn't manage to find the source of this bug, but I wrote a workaround which works for me. https://github.com/appidman/jenkins-inheritance-plugin/commit/cb39016b846821dcec21d06e1537aa1c06aa5163

            People

            • Assignee:
              Unassigned
              Reporter:
              appid AppId Man
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: