-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: ansicolor-plugin
-
None
-
Environment:Jenkins 2.150.3
The plugin leaks colors when using a custom color map with foreground and background colors set to another color than the Jenkins default.
When using version 0.6.2 even the output before the first colored output is colored.
With version 0.5.3 only the output after the first colored output is colored.
I used the following pipeline script to create the screenshots:Â
echo 'This should not be colored!' ansiColor('info') { echo 'This should be colored!' } echo 'This should not be colored!'
My color map is defined with the following values:
Name: info
Default Background: Yellow
Default Foreground: Blue
Black: black
black
Red: red
red
Green: green
green
Yellow: yellow
yellow
Blue: blue
blue
Magenta: magenta
magenta
Cyan: cyan
cyan
White: white
white