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

Text Parameter input field displayed as single string

    Details

    • Similar Issues:

      Description

      We use TextParameterDefinition to obtain a commit message for the deployment stage. The following code is used to obtain the message

        

      stage ('Approval (Dev)') {
                  milestone 1
                  
                  timeout(time:5, unit:'DAYS') {
                      commitMessage = input (id: 'userInput', message: "Approve build for Dev?", parameters: [
           				[$class: 'TextParameterDefinition', defaultValue: """${commitMessage}""", description: 'Change Summary', name: 'comment'],
                      	])
                  }
                  milestone 2
      
                  deploymentApproved = true
              }
      

       

      TextParameterDefinition is supposed to produce a multi-line input field, but instead, single-line text input is shown - resulting in all newline characters being ignored and the entire commit message being "smushed" into a single line:

      Note that the same field is shown correctly in Blue Ocean UI:

       

        Attachments

          Activity

          Hide
          r0ll1ngst0ne Michael Kostukov added a comment -

          Ping?

          Show
          r0ll1ngst0ne Michael Kostukov added a comment - Ping?

            People

            • Assignee:
              Unassigned
              Reporter:
              r0ll1ngst0ne Michael Kostukov
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: