Jenkins 2.405
ansiColor plugin installed (jenkins restarted after installation)
in the pipeline (scripted), I have following snippet to call ansiColor
ansiColor('xterm') {
echo -e '\033[31mERROR:\e[0m xxxx'
}
Then I got this exception:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 33: unexpected char: '\' @ line 33, column 48.
echo -e '\033[31mERROR:\e[0m xxxx
^
1 error
how could I make this solved?

it's weird, if I change the snippet to blow, it works
there are two things unclear: