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

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • ansicolor-plugin
    • None
    • Jenkins 2.277

    Description

      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.   

      Attachments

        Activity

          slide_o_mix Alex Earl added a comment -

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

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

          slide_o_mix Changed to automatic.  Sorry accidentally got assigned. 

          sutharshansharma 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.

          rverduijn 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.
          sodul 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.

          sodul 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 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 .

          People

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

            Dates

              Created:
              Updated: