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

AnsiColor plugin upgraded from 0.6.2 to 0.7.4 no longer shows colored output

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ansicolor-plugin
    • None
    • Jenkins 2.277

      AnsiColor plugin upgraded from 0.6.2 to 0.7.4 

      The terraform console output which displays in color fomat not working after upgrading the plugin.  Once downgraded to 0.6.2 it works fine.   

          [JENKINS-64734] AnsiColor plugin upgraded from 0.6.2 to 0.7.4 no longer shows colored output

          Alex Earl added a comment -

          Why was this assigned to me? I don't work on this plugin.

          Alex Earl added a comment - Why was this assigned to me? I don't work on this plugin.

          sutharshan added a comment -

          slide_o_mix Changed to automatic.  Sorry accidentally got assigned. 

          sutharshan added a comment - slide_o_mix  Changed to automatic.  Sorry accidentally got assigned. 

          As a note that hopefully helps in tracking down this issue, we are having the same problem and can work around it by configuring system setting Global color map for all builds to "xterm". Leaving the system-level default blank and configuring this from individual builds results in color codes not getting rendered.

          Robin Verduijn added a comment - As a note that hopefully helps in tracking down this issue, we are having the same problem and can work around it by configuring system setting Global color map for all builds to "xterm". Leaving the system-level default blank and configuring this from individual builds results in color codes not getting rendered.

          Stephane Odul added a comment -

          I can confirm that this issue is present for pytest stack traces (they have colors) and that setting "xterm" in the global options brought the colors back.

          Stephane Odul added a comment - I can confirm that this issue is present for pytest stack traces (they have colors) and that setting "xterm" in the global options brought the colors back.

          Allan BURDAJEWICZ added a comment - - edited

          Allan BURDAJEWICZ added a comment - - edited Maybe the colorMap is not always properly detected from the context in https://github.com/jenkinsci/ansicolor-plugin/blob/ansicolor-0.7.0/src/main/java/hudson/plugins/ansicolor/ColorConsoleAnnotator.java#L74 . Though this might most likely be related to this fallback https://github.com/jenkinsci/ansicolor-plugin/blob/ansicolor-0.7.0/src/main/java/hudson/plugins/ansicolor/ColorConsoleAnnotator.java#L81-L84 or the parsing here https://github.com/jenkinsci/ansicolor-plugin/blob/ansicolor-1.0.1/src/main/java/hudson/plugins/ansicolor/action/ColorizedAction.java#L89-L112 .

            Unassigned Unassigned
            sutharshansharma sutharshan
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: