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!

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

              Created:
              Updated:
              Resolved: