Display newlines in build description

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      BlueOcean doesn't display newlines and HTML also always gets escaped, so there is no way to manually wrap lines in the build description.

      We are updating our currentBuild.description in the JenkinsFile with some path of an build artifact that is getting uploaded in the course of the build process.

      E.g.

      stage('upload') {
      ...
      currentBuild.description += "Uploaded ${destination}\n";
      }
      

      can result in a build description of:

      Uploaded /BUILDS/something/v1.0.0/linux/something.tar.gz
      Uploaded Z:\BUILDS\something\v1.0.0\windows\something.zip

       

      Current display on the build page in BlueOcean:

      Expected display:

            Assignee:
            Patrick Scherz
            Reporter:
            Patrick Scherz
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: