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

[Pipeline: Stage View] Log messages containing encoded models displayed with special characters in the logs view

XMLWordPrintable

      The Problem

      When you use a console model encoder, the console will display text with a hyperlink, but the stage logs would show encoded metacharacters in the "Print Message" step name.

      Pipeline

      import static hudson.console.ModelHyperlinkNote.encodeTo
      
      stage('Build')
      {
          echo "This is a regular message"
          echo "This is build ${encodeTo(currentBuild.rawBuild)}"
      }
      

      Actual

      See attachment

            svanoort Sam Van Oort
            hares Zaitcev Peter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: