警告信息:
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
导致的问题
某些代码在UTF-8的环境上跑报错
解决方法:
设置jenkins服务器环境变量
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
重启jenkins
警告信息:
[WARNING] Using platform encoding (GBK actually) to copy filtered resources, i.e. build is platform dependent!
导致的问题
某些代码在UTF-8的环境上跑报错
解决方法:
设置jenkins服务器环境变量
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
重启jenkins