Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansi colors not seen in trimmed console output #237

Open
tomers opened this issue Dec 29, 2021 · 3 comments
Open

Ansi colors not seen in trimmed console output #237

tomers opened this issue Dec 29, 2021 · 3 comments
Labels
bug ❓ Possibly an ansicolor plugin bug

Comments

@tomers
Copy link

tomers commented Dec 29, 2021

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

@tszmytka
Copy link
Collaborator

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.

@bdesham-vdx
Copy link

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

@dblock dblock added the bug ❓ Possibly an ansicolor plugin bug label Jul 25, 2022
@fernando-renzi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ❓ Possibly an ansicolor plugin bug
Projects
None yet
Development

No branches or pull requests

5 participants