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

Newlines not rendered for input step when submitterParameter is set

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: pipeline
    • Labels:
      None
    • Environment:
      Jenkins 2.259
      Pipeline: Input Step 2.12
    • Similar Issues:

      Description

      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

       

        Attachments

          Issue Links

            Activity

            Hide
            fho Fabian Holler added a comment -

            JENKINS-45251 same issue for blueocean view which was fixed

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

              People

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

                Dates

                Created:
                Updated: