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

ANSIColor plugin leaks format onto next line's timestamp

      When used with timestamped console output, the formatting from one line sometimes (but not always) leaks over and colors the timestamp on the next line.

        1. with.png
          with.png
          8 kB
        2. without.png
          without.png
          6 kB
        3. consolelog.png
          consolelog.png
          323 kB

          [JENKINS-34019] ANSIColor plugin leaks format onto next line's timestamp

          Alastair D'Silva created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170036 ] New: JNJira + In-Review [ 183740 ]
          Steven G Brown made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Steven G Brown added a comment - - edited

          Shell script that I used to reproduce this issue:

          #!/bin/sh
          
          # Foreground
          echo "\033[31mRed Foreground"
          echo "\033[0mOff"
          # Background
          echo "\033[46mCyan Background"
          echo "\033[0mOff"
          # Bold
          echo "\033[1mBold"
          echo "\033[0mOff"
          # Underline
          echo "\033[4mUnderline"
          echo "\033[0mOff"
          # Double-underline
          echo "\033[21mDouble-underline"
          echo "\033[0mOff"
          

          Also changed System clock time format so that it no longer uses bold text:

          HH:mm:ss' '
          

          Steven G Brown added a comment - - edited Shell script that I used to reproduce this issue: #!/bin/sh # Foreground echo "\033[31mRed Foreground" echo "\033[0mOff" # Background echo "\033[46mCyan Background" echo "\033[0mOff" # Bold echo "\033[1mBold" echo "\033[0mOff" # Underline echo "\033[4mUnderline" echo "\033[0mOff" # Double-underline echo "\033[21mDouble-underline" echo "\033[0mOff" Also changed System clock time format so that it no longer uses bold text: HH:mm:ss' '

          Code changed in jenkins
          User: Steven Brown
          Path:
          src/main/java/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2.java
          src/main/webapp/style.css
          http://jenkins-ci.org/commit/timestamper-plugin/c31dc9571d5d1121d3f7e43d81059e0818e58b7a
          Log:
          JENKINS-34019 When displaying timestamps, ignore AnsiColor plugin styling

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Steven Brown Path: src/main/java/hudson/plugins/timestamper/annotator/TimestampAnnotatorFactory2.java src/main/webapp/style.css http://jenkins-ci.org/commit/timestamper-plugin/c31dc9571d5d1121d3f7e43d81059e0818e58b7a Log: JENKINS-34019 When displaying timestamps, ignore AnsiColor plugin styling

          Fix released with Timestamper 1.8.6.

          Steven G Brown added a comment - Fix released with Timestamper 1.8.6.
          Steven G Brown made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Daniel Kirkdorffer made changes -
          Attachment New: without.png [ 34094 ]
          Daniel Kirkdorffer made changes -
          Attachment New: with.png [ 34095 ]

          Is there a way to adjust the colors? I'm not sure I like the new .timestamp style.

          It turns the unassuming

          into the jarring

          Daniel Kirkdorffer added a comment - Is there a way to adjust the colors? I'm not sure I like the new .timestamp style. It turns the unassuming into the jarring

            Unassigned Unassigned
            evildeece Alastair D'Silva
            Votes:
            5 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: