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

Implement rendering ANSI color codes in stage view log output #207

Open
6 tasks done
hectcastro opened this issue Sep 23, 2020 · 7 comments
Open
6 tasks done

Implement rendering ANSI color codes in stage view log output #207

hectcastro opened this issue Sep 23, 2020 · 7 comments
Labels
feature request ✨ New feature to be added

Comments

@hectcastro
Copy link

Test environment

- Jenkins Version: 2.249.1
- AnsiColor Version: 0.7.3
- Operating System running Jenkins:

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"

Expected behavior

ANSI color codes interpreted in stage view log output.

Actual behavior

ANSI color codes are interpreted in overall build log output, but not within individual stage view log output.

94034010-81ea7b80-fd8f-11ea-8959-90fe7f476167

Steps to reproduce the behavior

  • Execute a build with the following Jenkinsfile; review the staging specific log output
node {
  stage('checkout') {
    checkout scm
  }

  stage('cibuild') {
    wrap([$class: 'AnsiColorBuildWrapper']) {
      sh './scripts/something-that-produces-ansi-color-codes'
    }
  }
}  

Issue checklist

  • Jenkins version
  • AnsiColor version
  • Operating System name and version
  • Expected behavior
  • Actual behavior
  • Steps to reproduce the behavior
@tszmytka tszmytka added the feature request ✨ New feature to be added label Sep 24, 2020
@tszmytka
Copy link
Collaborator

I actually have been thinking about this for some time but other things always got in the way. This is a new feature that has simply never been implemented.
Thank you for the description and a nice screenshot.

@tszmytka tszmytka changed the title ANSI color codes not rendering in stage view log output Implement rendering ANSI color codes in stage view log output Sep 24, 2020
@fcatacut
Copy link

fcatacut commented May 5, 2021

We recently ran into this issue (Jenkins 2.235.1, AnsiColor 0.7.5). One thing that I did notice is that the color rendered just fine when viewing the stage view while the command was executing. The color isn't rendered only when viewing the stage view when the command has completed execution.

@stale
Copy link

stale bot commented Sep 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Sep 6, 2021
@tszmytka tszmytka removed the wontfix label Oct 14, 2021
@stale
Copy link

stale bot commented Apr 16, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Apr 16, 2022
@ddup1
Copy link

ddup1 commented Apr 21, 2022

Hi,

I got the same behaviour since i update my jenkins server.
Before with jenkins 2.164.3 and ansicolo 0.6.2 it works fine even in individual stage view. But since update, last jenkins version and last ansiColor plugin, we met the same pb as describe here.

@stale stale bot removed the wontfix label Apr 21, 2022
@ddup1
Copy link

ddup1 commented Apr 21, 2022

I revert to ansicolor v0.6.2 and new build keep colors in stage view.

@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
feature request ✨ New feature to be added
Projects
None yet
Development

No branches or pull requests

5 participants