解决Jenkins console输出乱码

来源:互联网 发布:mac上玩穿越火线 编辑:程序博客网 时间:2024/05/29 18:50

背景

Jenkins console输出乱码,如

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

解决办法

  • 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 ....."
0 0
原创粉丝点击