1.配置环境变量 JAVA_TOOL_OPTIONS = -Dfile.encoding=UTF8 2.重新启动jenkins http://localhost:8080/restart 3.再次构建,控制台打印的中文就不是乱码了