ansicolor-plugin
ansicolor-plugin copied to clipboard
Ansi colors not seen in trimmed console output
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:
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
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.
This might be a duplicate of #207 and #216.
To fix it, you need to go to Settings ---> Ansicolor ---> Global color map for all builds ---> and set it to xterm.