Sometimes, when compiling some files, you will see the following strange output characters.
e[1;33m
Copy the code
What looks like garbled code as shown in the picture above.
Problems and solutions
This is not a problem because you probably use the ANSI Escape Code output in your program.
The purpose is to display colored output in interrupts.
This display mode will display garbled characters like the one above if your terminal does not support it.
For Jenkins, you’ll need to install AnsiColor.
The name of the plugin for AnsiColor, the plug-in project address, please refer to the link: plugins. Jenkins. The contents of the IO/AnsiColor /.
The specific installation method is not covered here, you can visit Jenkins plugins interface, by searching the name of the plugin to install.
The figure above shows the plug-in that has been installed successfully.
Configuration in Jenkins
Access the project you need to configure in Jenkins.
Then select the Color ANSI Console Output option in the Build Environment variable of your project.
Then save and exit before recompiling your project on Jenkins.
At this point you can see the color output on the console.
Color output as shown above.
www.ossez.com/t/jenkins/1…