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

Shows control characters instead of color in pipeline step log

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • ansicolor-plugin
    • None

      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!

        1. image-2020-10-16-02-38-24-954.png
          49 kB
          Viacheslav Dubrovskyi
        2. image-2020-10-16-02-44-42-509.png
          11 kB
          Viacheslav Dubrovskyi
        3. Screenshot 2020-10-17 at 14.26.13.png
          993 kB
          Oleg Nenashev

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

              Created:
              Updated:
              Resolved: