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

Description does not display line breaks

    XMLWordPrintable

Details

    Description

      The description of a build can be set via currentBuild.description = '....'. However, I am unable to set a line break. Neither using <br> nor using \n.

       

      The description should ideally use the Markup Formatter that is defined in the Jenkins Security Settings.

      Attachments

        Issue Links

          Activity

            kevcodez Kevin Grüneberg created issue -
            kevcodez Kevin Grüneberg made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-41769 [ JENKINS-41769 ]
            kevcodez Kevin Grüneberg made changes -
            Description The description of a build can be set via *currentBuild.description = '....'". However, I am unable to set a line break. Neither using '<br>' nor using '\n'.

             

            The description should ideally use the Markup Formatter that is defined in the Jenkins Security Settings.
            The description of a build can be set via *currentBuild.description = '....'*. However, I am unable to set a line break. Neither using *<br>* nor using *\n*.

             

            The description should ideally use the Markup Formatter that is defined in the Jenkins Security Settings.
            jamesdumay James Dumay added a comment -

            kevcodez the design we have only caters for a single line on both the messages column and the pipeline result details header. Allowing arbitrary amounts of formatting and information there would significantly impact the design. Ill be honest, we are unlikely to change that in the next year. However sometime next year we are planning a redesign of those screens so we could consider it then.

            Thanks for reporting.

            jamesdumay James Dumay added a comment - kevcodez the design we have only caters for a single line on both the messages column and the pipeline result details header. Allowing arbitrary amounts of formatting and information there would significantly impact the design. Ill be honest, we are unlikely to change that in the next year. However sometime next year we are planning a redesign of those screens so we could consider it then. Thanks for reporting.
            jamesdumay James Dumay made changes -
            Resolution Postponed [ 6 ]
            Status Open [ 1 ] Resolved [ 5 ]
            jbriden Jenn Briden made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            I think it will be OK not to change design — just do like Git — display only first line of multiline description on page with builds list and full description on build page

            disminder Alexey Marchenko added a comment - I think it will be OK not to change design — just do like Git — display only first line of multiline description on page with builds list and full description on build page

            People

              Unassigned Unassigned
              kevcodez Kevin Grüneberg
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: