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

Text parameters are rendered as text input instead of text area

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Pipeline stage view 1.3

      A TextParameterDefinition is supposed to be a multiple lines field (textarea) instead of the StringParameterDefinition which is one line parameter (input text) (see JENKINS-13916 for exemple)

      I did this test :

      stage 'input'
      def userInput = input(
       id: 'userInput', message: 'Let\'s go?', parameters: [
       [$class: 'TextParameterDefinition', defaultValue: 'a text\nwith several lines', description: 'A multiple lines text', name: 'aText'],
       [$class: 'StringParameterDefinition', defaultValue: 'a text', description: 'A String', name: 'aString'],
       [$class: 'BooleanParameterDefinition', defaultValue: true, description: 'A Boolean', name: 'aBoolean'],
       [$class: 'PasswordParameterDefinition', defaultValue: 'a password', description: 'A password', name: 'aPassword']
      ]) 
      

      It gives :


      StringParameterDefinition, BooleanParameterDefinition, PasswordParameterDefinition types are correctly rendered but TextParameterDefinition is a text input and not a textarea.

          [JENKINS-34521] Text parameters are rendered as text input instead of text area

          Sam Van Oort added a comment -

          Update: I have a fix in progress for this but am still working through some of the smaller issues.

          Sam Van Oort added a comment - Update: I have a fix in progress for this but am still working through some of the smaller issues.

          Sam Van Oort added a comment -

          Update for aheritier didn't make the cut for this release (needed a bit more tinkering than I expected). Plan on the next stage view release including it.

          Sam Van Oort added a comment - Update for aheritier didn't make the cut for this release (needed a bit more tinkering than I expected). Plan on the next stage view release including it.

          thanks svanoort

          Arnaud Héritier added a comment - thanks svanoort

          Kieran Shaw added a comment -

          Anyone got an news on this one? svanoort, did this just not end up being possible?

          I'd really like this fixed too

          Kieran Shaw added a comment - Anyone got an news on this one? svanoort , did this just not end up being possible? I'd really like this fixed too

          Any update? We really need this working - our approval step requires supplying a multi-line change summary, which cannot be done until this bug is addressed...

          Michael Kostukov added a comment - Any update? We really need this working - our approval step requires supplying a multi-line change summary, which cannot be done until this bug is addressed...

          Ping!

          Michael Kostukov added a comment - Ping!

          Unassigned as original developer (Sam) seems to be gone...

          Michael Kostukov added a comment - Unassigned as original developer (Sam) seems to be gone...

          Added Sam back.

           

          Sam, it's been 3 years since you mentioned that the fix is in the works. Any luck?

          Michael Kostukov added a comment - Added Sam back.   Sam, it's been 3 years since you mentioned that the fix is in the works. Any luck?

            Unassigned Unassigned
            aheritier Arnaud Héritier
            Votes:
            7 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: