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

Display newlines in build description

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • At least BlueOcean versions since 1.21, but actually probably all.

      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:

            pscherz Patrick Scherz
            pscherz Patrick Scherz
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: