log files get bloated with "junk" data
See original GitHub issueHi, first of all thanks for you work on this plugin.
With the AnsiColor Plugin enabled our logfiles are getting huge with coloured output enabled. In particular every line that has color sequences will add “junk” data to it, giving me:
Default [8mha:AAAApR+LCAAAAAAAAP9b85aBtbiIQT2jNKU4P0+vIKc0PTOvWC8xrzgzOT8nv0gvODO3ICfVoyQ3xy+/JNU2Yj/Tagmf50wMjD4M7CWJ6SCJEgYhn6zEskT9nMS8dP3gkqLMvHTriiIGKaihyfl5xfk5qXrOEBpkDgMEMDIxMFQUlDDI2RQXJOYpFJdU5qTaKoEttlJQdnYxMHB2sVayAwDjW+2vpQAAAA==[0mMagenta[8mha:AAAAkR+LCAAAAAAAAP9b85aBtbiIQT2jNKU4P0+vIKc0PTOvWC8xrzgzOT8nv0gvODO3ICfVoyQ3xy+/JNU2Yj/Tagmf50wMjD4M7CWJ6SCJEgYhn6zEskT9nMS8dP3gkqLMvHTriiIGKaihyfl5xfk5qXrOEBpkDgMEMDIxMFQUlDCw2+gXFyTm2QEAI9P8iI4AAAA=[0m
instead of (with color output disabled):
Default [35mMagenta[0m
for the script:
#!/bin/bash
echo -e "Default \e[35mMagenta\e[0m"
I reproduced this on Debian Wheezy with the official jenkins repository (and java 7) in stock configuration to rule out a problem with our setup.
same problem was discussed in the comments here: https://issues.jenkins-ci.org/browse/JENKINS-11752
do you have any idea what could cause this and a possible solution / workaround?
thanks in advance.
Issue Analytics
- State:
- Created 8 years ago
- Comments:15 (8 by maintainers)

Top Related StackOverflow Question
Has this somehow been baked into the Jenkins pipeline code? We’ve expressly disabled the ANSI color plugin from all of our jobs since this was making our raw logs unreadable, but now I see the same output for
[Pipeline]prefixes in Jenkinsfile jobs:I created a pure JS version, because we really want to have colorised output. Enjoy! https://github.com/jakubjosef/jenkins-ansi-color-js