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

Coloring leaks over non script related lines

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • ansicolor-plugin
    • None
    • ansi color 0.6.3
      jenkins 2.176.2

      Line colouring bleeds to unrelated lines

      Reproducible example:

      node('linux') {
          wrap([$class: 'AnsiColorBuildWrapper', 'colorMapName': 'XTerm']) {
              sh "echo -e \"\\e[33mYellow words, white background.\""
              sh "echo -e \"\\e[35mMagenta words, white background.\""
          }
      }
      

      Gives the output

      Older versions give the output (0.5.3)

            tszmytka Tomasz Szmytka
            raihaan Raihaan Shouhell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: