Jenkins+sonarqube+sonar-scanner扫描java文件乱码怎么解决?

在jenkins上扫描java项目,提示乱码,有没有知道怎么解决啊?

WARN: Invalid character encountered in file /root/.jenkins/workspace/sonar-scanner-rrdl/tomcat_rrdl/webapps/ROOT/WEB-INF/classes/com/yfb/peragent/common/CommonResult.class at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
ERROR: Unable to parse source file : /root/.jenkins/workspace/sonar-scanner-rrdl/tomcat_rrdl/webapps/ROOT/WEB-INF/classes/com/yfb/peragent/common/CommonResult.class
ERROR: Parse error at line 1 column 1:

Jenkins+sonarqube+sonar-scanner扫描java文件乱码怎么解决?_第1张图片

你可能感兴趣的:(自动化集成测试)