-
Story
-
Resolution: Unresolved
-
Minor
-
None
As an engineer
I want ANSI color sequences to be removed from logs, at my choosing, when sent to Cloudwatch
So that I do not experience the clutter of escape sequences that do not render and make the logs less readable
PR is https://github.com/jenkinsci/aws-cloudwatch-logs-publisher-plugin/pull/23 as mentioned I will look at adding unit test
Additional context:
ansicolor plugin is popular on Jenkins servers but tends to make users choose to include ANSI sequences in their logs.
This enhancement allows the ANSI color sequences to be removed as the log is sent to Cloudwatch so with ansicolor plugin on Jenkins you can get full color logs on Jenkins and they are clean of escape sequences when they land on Cloudwatch.
The implementation adds both the databinding for the job step to enable the feature (off by default) and allows a property in the Pipeline step code for the same setting.