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

Preserve formatting on input box in stage view

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Jenkins 2.13
      Pipeline: Input Step Plugin 2.0
      Pipeline: Stage View Plugin 1.5
    • Similar Issues:

      Description

      The following groovy pipeline:

      node {
         stage 'Do nothing'
      
      }
      
      node {
         stage 'Showcase'
         input """This text
      should appear on a new line!"""
      }

      results in preserving the line break at console while removing it at the input approval box in stage view (see attached files).

      To be able to present pretty formatted information to the submitter the input box should show the text the same way as the console output.

        Attachments

          Issue Links

            Activity

            Hide
            svanoort Sam Van Oort added a comment -

            Resolved with a quick PR (now in review). In my example I simply used:

            input 'I am a \n multiline string'
            

            Show
            svanoort Sam Van Oort added a comment - Resolved with a quick PR (now in review). In my example I simply used: input 'I am a \n multiline string'
            Hide
            jglick Jesse Glick added a comment -

            Forgot to link the PR.

            Show
            jglick Jesse Glick added a comment - Forgot to link the PR.
            Hide
            svanoort Sam Van Oort added a comment -

            Merged into master branch, awaiting next release

            Show
            svanoort Sam Van Oort added a comment - Merged into master branch, awaiting next release
            Hide
            dhagener Dirk Hagener added a comment -

            Thanks for the quick solution. Our DevOps will appreciate it.

            When will it be released? With the next weekly update?

            Show
            dhagener Dirk Hagener added a comment - Thanks for the quick solution. Our DevOps will appreciate it. When will it be released? With the next weekly update?
            Hide
            svanoort Sam Van Oort added a comment -

            Dirk Hagener I have a couple smaller fixes/enhancements I'd like to include along with this release, so probably end of next week or thereabouts.

            Show
            svanoort Sam Van Oort added a comment - Dirk Hagener I have a couple smaller fixes/enhancements I'd like to include along with this release, so probably end of next week or thereabouts.
            Hide
            svanoort Sam Van Oort added a comment -

            Released with v 1.6

            Show
            svanoort Sam Van Oort added a comment - Released with v 1.6

              People

              • Assignee:
                svanoort Sam Van Oort
                Reporter:
                dhagener Dirk Hagener
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: