ansicolor-plugin icon indicating copy to clipboard operation
ansicolor-plugin copied to clipboard

Ansi colors not seen in trimmed console output

Open tomers opened this issue 3 years ago • 3 comments

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

Don't know (I'm a user)

Reproduction steps

I have a job which produces a long output with ANSI colors. The output is trimmed by Jenkins by default, and there's a 'Full log' link which expands output to display all of it.

When I look at the trimmed output, ANSI colors are not shown properly by the plugin: image

However, if I expand the output, it all looks as expeced.

Expected Results

ANSI colors should shown properly in trimmed output display.

Actual Results

ANSI colors are not shown properly in trimmed output display.

Anything else?

No response

tomers avatar Dec 29 '21 10:12 tomers

Please provide "Jenkins and plugins versions report" and the pipeline script you're using - doesn't have to be the whole thing, something similar but showing the same problem would be enough.

Without this it's really impossible for anyone to analyze anything. Could be a real bug. But maybe you just need to update Jenkins/ansicolor-plugin/some other plugin to the newest version.

tszmytka avatar Feb 24 '22 20:02 tszmytka

This might be a duplicate of #207 and #216.

bdesham-vdx avatar Apr 27 '22 17:04 bdesham-vdx

To fix it, you need to go to Settings ---> Ansicolor ---> Global color map for all builds ---> and set it to xterm.

fernando-renzi avatar May 22 '23 13:05 fernando-renzi