afox123 发表于 2018-1-8 08:47:20

解决Jenkins console输出乱码


解决Jenkins console输出乱码


背景
  Jenkins console输出乱码,如
  

�������������  


[*]1
解决办法



[*]Jenkins Master 设置utf8 encoding  


[*]Tomcat 启动脚本  
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF-8"

[*]Jenkins 系统管理  
环境变量 Key: LANG, Value zh_CN.UTF-8


[*]Jenkins Slave  
启动脚本
  
nohup java "-Dfile.encoding=UTF-8 -jar slave.jar ....."


  
posted on 2015-11-05 13:35 sdet_liang 阅读(...) 评论(...)编辑 收藏
页: [1]
查看完整版本: 解决Jenkins console输出乱码