Jenkins: console output characters

Does anyone know how to defeat such characters in the Jenkins console output log?

The problem seems to be related to UTF-8.

Console output

+8
debian console jenkins
source share
3 answers

The problem is that characters are not output as UTF-8 to the console. I think the solution is to tell jenkins when you call it to write the output as UTF-8. See this solution for a similar UTF-8 problem. Char encoding does not work on console (Linux)

Something like java -Dfile.encoding=UTF-8 jenkins.war might do the trick

+7
source share

In Jenkins ver. 2.46.2, I just got this by going to Nodes, Advanced settings, JVM Options and placing -Dfile.encoding=UTF8 and then starting this node again offline and on the Internet. Hope this helps other people. It would be great if UTF8 support was by default.

+3
source share

To give an answer more complete. If you use the tomcat container to run jenkins, edit the catalina.sh configuration file:

 vim apache-tomcat-path/bin/catalina.sh 

Add -Dfile.encoding=UTF-8 to JAVA_OPTS var and restart tomcat to do the trick. enter image description here

+2
source share

All Articles