-
Notifications
You must be signed in to change notification settings - Fork 84
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
Plugin parses escape characters but doesn't add CSS - Python specific. #74
Comments
This is just a high intensity color that isn't in a released version of this plugin, see #16. I opened #75 to make a release, maybe @ejelly or @qvicksilver can take care of it? |
I realised these codes might be causing the issue after I posted, so I changed them to VT100 codes; same issue... |
What did you use? Make that 92 and 31, are you saying that doesn't work? |
After my initial post I realised that anything after 37 (or perhaps 47) might not be supported. So I refactored all of the colors in my script to range of 30 to 37. The problem is the exact same. It still only removes the escape sequences, it does not replace them with colors. Using these same codes with just 'echo -e' works fine, so I believe this is Python specific. I call the Python script with '-u' to disable caching, and print with:
just to be extra sure.... The user profile that runs the script has its default shell set to /usr/bin/sh. |
Alright, so I fired up a VM on my home computer and the plugin worked fine for me. There could be another plugin causing the issue, and/or it could be to do with the Jenkins version. The servers at work probably use an older version of Jenkins, 2.7 (latest stable) I'd guess. I don't have remote access to them right now, so can't check the version until Monday. Are there known issues with this plugin and older versions of Jenkins? |
Hm, no known issues with older Jenkins, as long as the plugin runs it should work. I would debug this next. Lets reopen this issue for now. |
I've had the same problem, updating to |
@daverickdunn care to try? |
@dblock I forgot all about this! No longer using this plugin I'm afraid... |
Hi guys,
I've read this thread: #49 and was almost going to comment on it, but for the sake of clarity I'll start a fresh one. I'll try keep it short and to the point.
Plugin is installed, works fine with following:
echo -e "\x1B[31mHello World\e[0m"
Returns:
Which is in a span, with beautiful style="color: #CD0000;" applied.
I call a Python script from the same shell using the same escape sequences (I've tried three):
python -u /home/leeroy/jenkins/supersecretscript.py 123 -t
Here, the escape sequences are removed, but there's no HTML or CSS added... :(
To clarify, without ANSIColor the Python output is:
With ANSIColor :
But 'Pass' is not colored in the latter, it's just been converted to plain text, it's not even in a span.
Any help is greatly appreciated.
BR,
Rich
The text was updated successfully, but these errors were encountered: