Jenkins console garbled modification

Original Address: https://www.jianshu.com/p/8b9df45df401

 

Option One, where the server environment variable to set jenkins, Right My Computer → Properties → Settings → Advanced System environment variables, adding JAVA_TOOL_OPTIONS


 
 

Scheme II, open jenkins installation directory, file jenkins.xml found in <arguments> tag is added at the red font, i.e., the coding is defined as utf-8 <arguments> -Xrs -Xmx512m -Dfile.encoding = utf-8 -Dhudson. lifecycle = hudson.lifecycle.WindowsServiceLifecycle -jar "% BASE% \ jenkins.war" --httpPort = 8080 </ arguments> save the configuration file, and then restart jenkins, enter the system management -> system info menu to see whether the change to take effect:

 
Paste_Image.png

1. Open Run, and type: "services.msc"
2, find jenkins service name, and then click to restart the service, as shown:


 
 

After re-build the Chinese displayed properly.

Absurd Program III, or build a second time (the first time since I have every building will be garbled)



Author: by Jill
link: https: //www.jianshu.com/p/8b9df45df401
Source: Jane book
Jane book copyright reserved by the authors, are reproduced in any form, please contact the author to obtain authorization and indicate the source.

Guess you like

Origin www.cnblogs.com/testerabner/p/11344382.html