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

Newlines not rendered for input step when submitterParameter is set

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • None
    • Jenkins 2.259
      Pipeline: Input Step 2.12

      When the 'submitterParameter' for the input step is set, the input dialog is not shown inline in the console log.
      An "input requested" link is shown instead which redirects to the `/input` page of the current build.

      This view does not render newlines in the input() messages.
      '\n' are ignored, `<br>` is printed as it is.

       

      How to reproduce

      1. Run a build for the the pipeline script:

      pipeline {
          agent any    stages {
              stage('Hello') {
                  steps {
                      input(message: """please confirm\nnextline\n<br>br-nextline""", submitterParameter: 'approver')
                  }
              }
          }
      }
      

      2. Click on the "input requested" link in the job console (not blue ocean view)

      3. The following is shown:

       

      Expected behavior: '\n' in the message text is rendered as a line break

       

          [JENKINS-63989] Newlines not rendered for input step when submitterParameter is set

          Fabian Holler added a comment -

          JENKINS-45251 same issue for blueocean view which was fixed

          Fabian Holler added a comment - JENKINS-45251 same issue for blueocean view which was fixed

            Unassigned Unassigned
            fho Fabian Holler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: