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

Shows control characters instead of color in pipeline step log

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Updated to version Jenkins-2.249.2 + AnsiColor-0.7.3 or 0.7.2

      And in the pipline step log the color disappeared.

      STR:

      Make pipeline job:

      ansiColor('xterm') {
          stage ("xterm"){
              node ("master") {
                  sh """
                      echo '\033[34mHello\033[0m \033[33mcolorful\033[0m \033[35mworld!\033[0m'
                  """
              }
          }
      }
      

      If look to the URL https://jenkins/view/all/job/test_pipeline2/488/console all good:

       

      But if go to Pipeline Steps in URL: https://jenkins/view/all/job/test_pipeline2/488/execution/node/9/log/

      Please fix it. Thank you!

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Screenshot from the today's debugging session

          Show
          oleg_nenashev Oleg Nenashev added a comment - Screenshot from the today's debugging session
          Hide
          dubrsl Viacheslav Dubrovskyi added a comment - - edited

          fixed if set xterm in glogal settings

          Oleg Nenashev Thank for!

          Show
          dubrsl Viacheslav Dubrovskyi added a comment - - edited fixed if set xterm in glogal settings Oleg Nenashev Thank for!

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            dubrsl Viacheslav Dubrovskyi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: