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

Pipeline view "header line" shows escape sequences for echo step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None
    • Jenkins Version: 2.152
      Blue Ocean: 1.9.0
      AnsiColor Version: 0.6.0 (But please note that this problem was already there before, i.e. in older versions of AnsiColor!)

      Note: This issue was filed as replacement for https://github.com/jenkinsci/ansicolor-plugin/issues/140 as suggested by jglick

      Best to close and reopen in JIRA for blueocean-plugin. If it is processing ANSI sequences in the main console block view, it should at least strip them when producing summaries.


      Thanks to #132 using ansiColor wrapper step nicely shows colours in classic UI as well as Blue Ocean (): however, in BO the echo steps "header line" in pipeline view also contains the escape sequences.

      Expected behavior

      Presumably just the plain (non-colourized) text from echo step with truncation like now, just WITHOUT any escape sequences?

      Actual behavior

      Steps to reproduce the behavior

      ansiColor('xterm') {
        echo "\033[1;31mPipeline problem: \033[0m That might be the reason"
      }
      

            Unassigned Unassigned
            reinholdfuereder Reinhold Füreder
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: